Skip to content

Commit

Permalink
Updated Dockerfile to newer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
czM1K3 committed Sep 18, 2024
1 parent 52a2c1b commit f289c16
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ COPY --from=deps /app/node_modules ./node_modules
COPY .env.build .env
COPY . .

ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_TELEMETRY_DISABLED=1

RUN corepack enable pnpm && pnpm 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

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
Expand All @@ -40,5 +40,6 @@ USER nextjs
EXPOSE 3000

ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

CMD HOSTNAME="0.0.0.0" node server.js
CMD ["node", "server.js"]

0 comments on commit f289c16

Please sign in to comment.