parent
85b40c10bf
commit
c83ff39677
|
@ -2,4 +2,11 @@ FROM node:15.11.0-alpine3.13
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn build
|
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
|
Loading…
Reference in New Issue