10 lines
226 B
Docker
10 lines
226 B
Docker
FROM node:15.9.0-alpine3.13
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN yarn
|
|
RUN yarn build
|
|
RUN yarn postbuild
|
|
# final image
|
|
FROM fholzer/nginx-brotli:v1.19.1
|
|
COPY --from=0 /app/dist /usr/share/nginx/html
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf |