Skip to content

Commit 8eb9a5c

Browse files
committed
Make the python run into entrypoint not cmd
1 parent a73e9be commit 8eb9a5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

{{cookiecutter.project_slug}}/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,5 @@ COPY --chown=user:user --from=test /home/user/app/dist dist
4040
RUN pip install --no-cache -r requirements.txt dist/*.whl --user
4141

4242

43-
ENTRYPOINT ["python", "-m"]
44-
CMD ["{{cookiecutter.package_name}}.{{cookiecutter.module_name}}"]
43+
ENTRYPOINT ["python", "-m", "{{cookiecutter.package_name}}.{{cookiecutter.module_name}}"]
4544

0 commit comments

Comments
 (0)