Personal_Website/docker/nginx/Dockerfile
2022-05-28 12:36:45 +00:00

15 lines
252 B
Docker

FROM node:16 as builder
COPY --chown=node ./ /code/
WORKDIR /code
USER node
RUN yarn --frozen-lockfile
RUN yarn build
FROM nginx:1.22.0-alpine
COPY ./docker/nginx/etc/nginx/conf.d/ /etc/nginx/conf.d/
COPY --from=builder /code/dist/ /var/www/html/