Skip to content

Commit 726a075

Browse files
fix: dockerfile
1 parent 101d490 commit 726a075

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,15 @@ if [[ "$*" == *"--android-bundle"* ]] || [[ "$*" == *"--android-release"* ]]; th
119119
export KEY_PASSWORD=${KEY_PASSWORD:-}\n\
120120
fi\n\
121121
\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\
122127
# Execute the main application\n\
123128
exec node /app/dist/index.js "$@"' > /entrypoint.sh && \
124129
chmod +x /entrypoint.sh
125130

126131
EXPOSE 4000
127132

128-
ENTRYPOINT ["/entrypoint.sh"]
129-
CMD ["sh", "-c", "node /app/dist/index.js serve --port ${PORT:-4000}"]
133+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)