Skip to content

Commit 470d651

Browse files
authored
[Dockerfile] [KubeRay Dashboard]: Fix Dockerfile warnings (ENV format, CMD JSON args) (#4167)
* [#4166] improvement: Fix Dockerfile warnings (ENV format, CMD JSON args) * extract the hostname from CMD Signed-off-by: Neo Chien <6762509+cchung100m@users.noreply.github.com> --------- Signed-off-by: Neo Chien <6762509+cchung100m@users.noreply.github.com> Co-authored-by: cchung100m <cchung100m@users.noreply.github.com>
1 parent b3a00db commit 470d651

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dashboard/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN \
4545
FROM base AS runner
4646
WORKDIR /app
4747

48-
ENV NODE_ENV production
48+
ENV NODE_ENV=production
4949
# Uncomment the following line in case you want to disable telemetry during runtime.
5050
# ENV NEXT_TELEMETRY_DISABLED 1
5151

@@ -67,8 +67,9 @@ USER nextjs
6767

6868
EXPOSE 3000
6969

70-
ENV PORT 3000
70+
ENV PORT=3000
7171

7272
# server.js is created by next build from the standalone output
7373
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
74-
CMD HOSTNAME="0.0.0.0" node server.js
74+
ENV HOSTNAME="0.0.0.0"
75+
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)