namesny-com/docker/Dockerfile

13 lines
252 B
Docker
Raw Normal View History

2021-01-05 11:28:07 +00:00
FROM node:13.8.0 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 default.conf /etc/nginx/conf.d/default.conf