ENV key value is deprecated
This commit is contained in:
parent
445addbab3
commit
bdb0cadb01
10
Dockerfile
10
Dockerfile
@ -14,8 +14,8 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
ENV NEXT_PUBLIC_GTM_ID ""
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NEXT_PUBLIC_GTM_ID=""
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN npm run build
|
||||
|
||||
@ -23,8 +23,8 @@ FROM $NODEJS_IMAGE AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_OPTIONS="--max-http-header-size=81920"
|
||||
ENV NODE_ENV production
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
@ -41,6 +41,6 @@ USER nextjs
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
ENV PORT 4000
|
||||
ENV PORT=4000
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
Loading…
Reference in New Issue
Block a user