19e478f2a9
The other options are things people usually won't need or want to set, so just keep it to the basics. * Rename config sample to match element-web * Update / simplify build instructions * Rename nginx config file to differentiate it from EC config
18 lines
291 B
Docker
18 lines
291 B
Docker
FROM --platform=$BUILDPLATFORM node:16-buster as builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
RUN scripts/dockerbuild.sh
|
|
|
|
# App
|
|
FROM nginxinc/nginx-unprivileged:alpine
|
|
|
|
COPY --from=builder /src/dist /app
|
|
COPY config/nginx.conf /etc/nginx/conf.d/
|
|
|
|
USER root
|
|
|
|
RUN rm -rf /usr/share/nginx/html
|
|
|
|
USER 101
|