|
FROM node:16-alpine as front
|
|
|
|
WORKDIR /app
|
|
COPY ./ /app/
|
|
|
|
RUN yarn install
|
|
RUN yarn run build
|
|
|
|
FROM nginx:1.17.8-alpine
|
|
RUN rm -rf /usr/share/nginx/html
|
|
COPY --from=front /app/public/ /usr/share/nginx/html
|
|
COPY ./docker/default.conf /etc/nginx/conf.d/default.conf
|