Skip to content

Commit 2af2224

Browse files
authored
updated start.sh script from updated template (#18)
Signed-off-by: Oleksander Piskun <[email protected]>
1 parent dbd2b09 commit 2af2224

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ COPY --chmod=775 healthcheck.sh /
5656
COPY --chmod=775 start.sh /
5757

5858
WORKDIR /ex_app/lib
59-
ENTRYPOINT ["/start.sh"]
59+
ENTRYPOINT ["/start.sh", "python3", "main.py"]
6060
HEALTHCHECK --interval=2s --timeout=2s --retries=300 CMD /healthcheck.sh

start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ if [ -f /frpc.toml ] && [ -n "$HP_SHARED_KEY" ]; then
6060
frpc -c /frpc.toml &
6161
fi
6262

63-
# Start the main application (adjust it for your ExApp)
64-
echo "Starting main application..."
65-
exec python3 main.py
63+
# Start the main application (launch cmd for ExApp is an argument for this script)
64+
echo "Starting application: $@"
65+
exec "$@"

0 commit comments

Comments
 (0)