Skip to content

Commit 14a3732

Browse files
author
Eric Lopes
committed
Update {{cookiecutter.project_slug}}/Dockerfile (#12)
Reviewed-on: https://gitea.eol.myds.me/cluster-projects/python-project-template/pulls/12
1 parent 43af802 commit 14a3732

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

{{cookiecutter.project_slug}}/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ WORKDIR /home/user/app
3737
COPY --chown=user:user --from=test /home/user/app/requirements.txt requirements.txt
3838
COPY --chown=user:user --from=test /home/user/app/dist dist
3939

40-
RUN pip install --no-cache -r requirements.txt dist/*.whl --user
41-
40+
USER root
41+
RUN pip install --no-cache -r requirements.txt dist/*.whl
42+
USER user
4243

4344
ENTRYPOINT ["python", "-m", "{{cookiecutter.package_name}}.{{cookiecutter.module_name}}"]
4445

0 commit comments

Comments
 (0)