frontend/Dockerfile
2021-03-25 18:55:43 +01:00

14 lines
335 B
Docker

FROM node:15.5.1-alpine3.12
WORKDIR /app
COPY package.json ./
RUN yarn
COPY package.json *.config.js index.html ./
COPY src ./src
COPY public ./public
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