16 lines
251 B
Docker
16 lines
251 B
Docker
FROM docker.io/node:16-alpine AS builder
|
|
|
|
WORKDIR /front
|
|
|
|
COPY . .
|
|
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
FROM docker.io/nginx:1.21.6-alpine as runner
|
|
|
|
COPY ./deploy/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=builder /front/dist /var/www/html
|
|
|
|
|
|
EXPOSE 8080 |