File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ USER user
1010WORKDIR /project/{PROJECT_DIR}
1111
1212RUN /scripts/prepareproject.sh
13- RUN ln -s /project/{PROJECT_DIR}/{ENTRYPOINT} /project/entrypoint
13+ RUN echo " /project/{PROJECT_DIR}/{ENTRYPOINT}" > /project/entrypoint
1414
1515EXPOSE {PORT}
1616
Original file line number Diff line number Diff line change 1616
1717# Run the entrypoint if configured:
1818if 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
2627fi
2728
2829echo No entrypoint found, running bash instead...
You can’t perform that action at this time.
0 commit comments