2023-08-27 23:28:48 +05:00
|
|
|
FROM node:20-alpine AS builder
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-04-15 00:49:24 +05:00
|
|
|
COPY package.json package-lock.json ./
|
2023-08-27 23:28:48 +05:00
|
|
|
RUN npm i
|
|
|
|
|
|
|
|
ADD . .
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
2023-10-15 11:14:07 +05:00
|
|
|
COPY --from=builder /app/dist /usr/share/comfycamp
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|