element-call/Dockerfile

19 lines
307 B
Text
Raw Normal View History

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