mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 08:34:53 +02:00
26 lines
336 B
Docker
26 lines
336 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
|
|
|
|
CMD ["npm", "start"]
|