Skip to content

Commit 84bd3b0

Browse files
committed
Change from legacy Dockerfile env syntax
1 parent b283a28 commit 84bd3b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ WORKDIR /app
99
COPY --from=deps /app/node_modules ./node_modules
1010
COPY . .
1111

12-
ENV NEXT_TELEMETRY_DISABLED 1
13-
ENV NEXT_PUBLIC_ENV production
12+
ENV NEXT_TELEMETRY_DISABLED=1
13+
ENV NEXT_PUBLIC_ENV=production
1414

1515
ARG NEXT_PUBLIC_DJANGO_URL
1616
ARG NEXT_PUBLIC_UPLOAD_URL
@@ -22,7 +22,7 @@ RUN yarn build
2222
FROM node:18-bullseye AS runner
2323
WORKDIR /app
2424

25-
ENV NODE_ENV production
25+
ENV NODE_ENV=production
2626

2727
RUN addgroup --system --gid 1001 nodejs
2828
RUN adduser --system --uid 1001 nextjs
@@ -35,6 +35,6 @@ USER nextjs
3535

3636
EXPOSE 3000
3737

38-
ENV PORT 3000
38+
ENV PORT=3000
3939

4040
CMD ["npm", "start"]

0 commit comments

Comments
 (0)