We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 101d490 commit 726a075Copy full SHA for 726a075
1 file changed
Dockerfile
@@ -119,11 +119,15 @@ if [[ "$*" == *"--android-bundle"* ]] || [[ "$*" == *"--android-release"* ]]; th
119
export KEY_PASSWORD=${KEY_PASSWORD:-}\n\
120
fi\n\
121
\n\
122
+# Default to serve if no arguments provided\n\
123
+if [ $# -eq 0 ]; then\n\
124
+ set -- serve --port "${PORT:-4000}"\n\
125
+fi\n\
126
+\n\
127
# Execute the main application\n\
128
exec node /app/dist/index.js "$@"' > /entrypoint.sh && \
129
chmod +x /entrypoint.sh
130
131
EXPOSE 4000
132
-ENTRYPOINT ["/entrypoint.sh"]
-CMD ["sh", "-c", "node /app/dist/index.js serve --port ${PORT:-4000}"]
133
+ENTRYPOINT ["/entrypoint.sh"]
0 commit comments