Skip to content

Commit 2f488f2

Browse files
committed
Do not require entrypoint to be executable.
1 parent bff3947 commit 2f488f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ USER user
1010
WORKDIR /project/{PROJECT_DIR}
1111

1212
RUN /scripts/prepareproject.sh
13-
RUN ln -s /project/{PROJECT_DIR}/{ENTRYPOINT} /project/entrypoint
13+
RUN echo "/project/{PROJECT_DIR}/{ENTRYPOINT}" > /project/entrypoint
1414

1515
EXPOSE {PORT}
1616

baseimages/scripts/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ fi
1616

1717
# Run the entrypoint if configured:
1818
if test -L entrypoint ; then
19+
ENTRYPOINT=$(cat entrypoint)
1920
echo Running project ...
2021
. /home/user/.local/bin/env
2122
. /home/user/the_venv/bin/activate
2223
for p in /project/the_venv/lib/python*/site-packages ; do
2324
export PYTHONPATH=$p
2425
done
25-
exec uv run ./entrypoint
26+
exec python $ENTRYPOINT
2627
fi
2728

2829
echo No entrypoint found, running bash instead...

0 commit comments

Comments
 (0)