2021-03-30 18:10:12 +00:00
|
|
|
FROM node:15.11.0-alpine3.13
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN yarn
|
2021-04-06 08:54:13 +00:00
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
# final image
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=0 /app/dist /app
|
|
|
|
FROM fholzer/nginx-brotli:v1.19.1
|
|
|
|
COPY --from=1 /app /usr/share/nginx/html
|
|
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|