2022-05-31 17:14:42 +00:00
|
|
|
FROM --platform=$BUILDPLATFORM node:16-buster as builder
|
2021-12-20 16:58:37 +00:00
|
|
|
|
|
|
|
WORKDIR /src
|
|
|
|
|
2022-12-20 11:44:27 +00:00
|
|
|
COPY . /src
|
|
|
|
RUN 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-12-20 11:44:27 +00:00
|
|
|
COPY --from=builder /src/dist /app
|
2022-05-11 11:11:49 +00:00
|
|
|
COPY config/default.conf /etc/nginx/conf.d/
|
2021-12-20 16:58:37 +00:00
|
|
|
|
2021-12-20 20:05:05 +00:00
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN rm -rf /usr/share/nginx/html
|
|
|
|
|
|
|
|
USER 101
|