element-call-Github/Dockerfile

19 lines
306 B
Docker
Raw Normal View History

2021-12-21 00:58:37 +08:00
FROM node:16-buster as builder
WORKDIR /src
2022-04-08 05:22:36 +08:00
COPY . /src/element-call
RUN element-call/scripts/dockerbuild.sh
2021-12-21 00:58:37 +08:00
# App
2021-12-21 02:43:45 +08:00
FROM nginxinc/nginx-unprivileged:alpine
2021-12-21 00:58:37 +08:00
2022-04-08 05:22:36 +08:00
COPY --from=builder /src/element-call/dist /app
2022-05-11 19:11:49 +08:00
COPY config/default.conf /etc/nginx/conf.d/
2021-12-21 00:58:37 +08:00
USER root
RUN rm -rf /usr/share/nginx/html
USER 101