Skip to content

Commit 83fff05

Browse files
committed
Fix Dockerfile dependency installation and environment variable formatting
1 parent d0c92e2 commit 83fff05

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WORKDIR /app
1010
# Install dependencies based on the preferred package manager
1111
COPY package.json pnpm-lock.yaml* package-lock.json* ./
1212
RUN \
13-
if [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
13+
if [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --no-frozen-lockfile; \
1414
elif [ -f package-lock.json ]; then npm ci; \
1515
else echo "Lockfile not found." && exit 1; \
1616
fi
@@ -28,8 +28,8 @@ RUN npm run build
2828
FROM base AS runner
2929
WORKDIR /app
3030

31-
ENV NODE_ENV production
32-
ENV NEXT_TELEMETRY_DISABLED 1
31+
ENV NODE_ENV=production
32+
ENV NEXT_TELEMETRY_DISABLED=1
3333

3434
RUN addgroup --system --gid 1001 nodejs
3535
RUN adduser --system --uid 1001 nextjs
@@ -49,8 +49,8 @@ USER nextjs
4949

5050
EXPOSE 3000
5151

52-
ENV PORT 3000
53-
ENV HOSTNAME "0.0.0.0"
52+
ENV PORT=3000
53+
ENV HOSTNAME="0.0.0.0"
5454

5555
# server.js is created by next build from the standalone output
5656
# https://nextjs.org/docs/pages/api-reference/next-config-js/output

0 commit comments

Comments
 (0)