Skip to content

Commit 6479c3b

Browse files
authored
Merge pull request #7644 from gimonaa/docs--add-comments-to-the-Dockerfile
[docs] Add comments to the Dockerfile
2 parents fcc81d8 + 414b83f commit 6479c3b

File tree

1 file changed

+5
-0
lines changed
  • packages/docs/src/routes/docs/cookbook/node-docker-deploy

1 file changed

+5
-0
lines changed

packages/docs/src/routes/docs/cookbook/node-docker-deploy/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ FROM base as final
5959
6060
# Use production node environment by default.
6161
ENV NODE_ENV production
62+
63+
# Pay attention to set the correct origin and port for the application.
64+
# This is used by the application to determine the origin of requests.
65+
# If you don't set this, the application will default to http://localhost:3000
66+
# If you set a wrong origin, the application may not work correctly, for example routeAction$ will not work
6267
ENV ORIGIN https://example.com
6368
6469
# Run the application as a non-root user.

0 commit comments

Comments
 (0)