Skip to content

Commit 4112429

Browse files
authored
Update Next.js Dockerfile HOSTNAME (#461)
See vercel/next.js#54342 and vercel/next.js#54093
1 parent 0bf6e67 commit 4112429

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/next-server/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ USER nextjs
5959
EXPOSE 3000
6060

6161
ENV PORT 3000
62-
ENV HOSTNAME localhost
62+
ENV HOSTNAME 0.0.0.0
6363

6464
# Allow the running process to write model files to the cache folder.
6565
# NOTE: In practice, you would probably want to pre-download the model files to avoid having to download them on-the-fly.
6666
RUN mkdir -p /app/node_modules/@xenova/.cache/
6767
RUN chmod 777 -R /app/node_modules/@xenova/
6868

69-
CMD ["node", "server.js"]
69+
CMD ["node", "server.js"]

examples/semantic-image-search/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ USER nextjs
5959
EXPOSE 3000
6060

6161
ENV PORT 3000
62-
ENV HOSTNAME localhost
62+
ENV HOSTNAME 0.0.0.0
6363

6464
# Allow the running process to write model files to the cache folder.
6565
# NOTE: In practice, you would probably want to pre-download the model files to avoid having to download them on-the-fly.
6666
RUN mkdir -p /app/node_modules/@xenova/.cache/
6767
RUN chmod 777 -R /app/node_modules/@xenova/
6868

69-
CMD ["node", "server.js"]
69+
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)