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 . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:22-alpine AS runner
|
FROM gcr.io/distroless/nodejs22-debian12 AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
ENV HOSTNAME=0.0.0.0
|
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/standalone ./
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
|
# COPY --from=builder /app/public ./public
|
||||||
USER nextjs
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user