Skip to content

Commit

Permalink
build: fix prod docker image entrypoint permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 18, 2023
1 parent 2ff9ef9 commit 5586354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ CMD [""]

FROM runtime as prod
# Pre-compile packages to .pyc (init speed gains)
RUN python -c "import compileall; compileall.compile_path(maxlevels=10, quiet=1)"
RUN python -c "import compileall; compileall.compile_path(maxlevels=10, quiet=1)" \
&& chmod +x /container-entrypoint.sh
ENTRYPOINT ["/container-entrypoint.sh"]
CMD ["bash"]

0 comments on commit 5586354

Please sign in to comment.