fosrl.pangolin/Dockerfile
2024-10-20 12:55:28 -04:00

27 lines
383 B
Docker

FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:20-alpine AS runner
RUN apk add --no-cache curl
WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/dist ./dist
COPY server/db/names.json /app/dist/names.json
CMD ["npm", "start"]