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.

16 lines
221 B
Docker

FROM node:16-alpine as builder
WORKDIR /app
ADD . .
RUN npm ci && npm run build
# build nginx webserver
FROM nginx:alpine
EXPOSE 80
ADD ./nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist /var/www/html