namesny-com/docker/Dockerfile

13 lines
255 B
Docker
Raw Normal View History

2022-01-23 16:44:29 +00:00
FROM node:16-alpine as front
2021-01-05 11:28:07 +00:00
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 default.conf /etc/nginx/conf.d/default.conf