18 lines
286 B
Text
18 lines
286 B
Text
|
FROM node:10-buster-slim as build-stage
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package.json .
|
||
|
RUN yarn install --pure-lockfile \
|
||
|
&& yarn cache clean
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN yarn run build
|
||
|
|
||
|
|
||
|
FROM nginx as production-stage
|
||
|
RUN mkdir /app
|
||
|
COPY --from=build-stage /app/dist /app
|
||
|
COPY nginx.conf /etc/nginx/nginx.conf
|