fosrl.pangolin/Dockerfile

27 lines
335 B
Text
Raw Normal View History

2024-10-06 09:55:45 -04:00
FROM node:20-alpine AS builder
2024-09-28 18:17:37 -04:00
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
2024-10-06 09:55:45 -04:00
FROM node:20-alpine AS runner
2024-09-28 18:17:37 -04:00
2024-09-29 16:12:33 -04:00
RUN apk add --no-cache curl
2024-09-28 18:17:37 -04:00
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/dist ./dist
2024-09-29 14:37:26 -04:00
CMD ["npm", "start"]