namesny-com/docker/Dockerfile

13 lines
264 B
Docker
Raw Permalink 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
2022-01-23 16:49:23 +00:00
COPY ./docker/default.conf /etc/nginx/conf.d/default.conf