You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
235 B
Docker

FROM node:16-alpine AS builder
COPY ./ /home/node/app
WORKDIR /home/node/app
RUN npm ci && npm run build
FROM nginx:alpine
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /home/node/app/dist /var/www/html
EXPOSE 8080