mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 16:45:40 +02:00
29 lines
442 B
Docker
29 lines
442 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 ./config/config.example.yml ./dist/config.example.yml
|
|
COPY ./server/db/names.json ./dist/names.json
|
|
|
|
CMD ["npm", "start"]
|