2025-04-01 23:04:18 +03:00

20 lines
275 B
Plaintext

FROM node:18-alpine AS builder
WORKDIR /app
COPY ./package*.json ./
RUN npm ci
COPY . .
RUN ls -lah
RUN npm run build
FROM nginx:latest
COPY --from=builder /app/dist /usr/share/nginx_cool/dist
COPY --from=builder /app/nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80