Fix Dockerfile npm ci conflict and ENV syntax

This commit is contained in:
ypratama committed 2026-08-27 15:09:06 +07:00
1 parent 966058e2fe
commit 1dee901f21
1 file changed
+5 -5
+5 -5
View File
@@ -4,7 +4,7 @@ FROM node:18-alpine AS base
FROM base AS deps
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
RUN npm ci --legacy-peer-deps
# Rebuild the source code only when needed
FROM base AS builder
@@ -17,8 +17,8 @@ RUN npm run build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
@@ -26,7 +26,7 @@ COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]