mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
16 lines
394 B
Docker
16 lines
394 B
Docker
FROM node:22 AS builder
|
|
WORKDIR /app
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM gcr.io/distroless/nodejs22 AS production
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
COPY --from=builder /app/next.config.mjs ./
|
|
COPY --from=builder /app/.next/standalone ./
|
|
COPY --from=builder /app/.next/static ./.next/static
|
|
ENV HOSTNAME="0.0.0.0"
|
|
CMD ["./server.js"]
|