update build
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 7m13s
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 7m13s
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -13,22 +13,17 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine AS runner
|
||||
FROM gcr.io/distroless/nodejs22-debian12 AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
|
||||
RUN addgroup -g 1001 -S nodejs \
|
||||
&& adduser -S nextjs -u 1001 -G nodejs
|
||||
|
||||
# COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
|
||||
USER nextjs
|
||||
# COPY --from=builder /app/public ./public
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
CMD ["server.js"]
|
||||
|
||||
Reference in New Issue
Block a user