15 lines
252 B
Docker
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/
|