Files
tunnel-please-frontend/Dockerfile
bagas 6a63e2801d
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 6m13s
renovate / renovate (push) Successful in 41s
Update Dockerfile
2026-01-03 14:07:12 +00:00

30 lines
615 B
Docker

FROM node:24-slim AS base
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1
FROM base AS deps
ENV NODE_ENV=development
COPY package.json package-lock.json* ./
RUN npm ci
FROM base AS builder
ENV NODE_ENV=production
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM gcr.io/distroless/nodejs24-debian13 AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
# COPY --from=builder /app/public ./public
EXPOSE 3000
CMD ["server.js"]