Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cambio en dockerfile para solucionar error de hilos en python durante… #14

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM python:3.8
#https://medium.com/@DahlitzF/run-python-applications-as-non-root-user-in-docker-containers-by-example-cba46a0ff384

RUN pip3 install --upgrade pip

#RUN pip3 install --upgrade pip

#RUN adduser worker
RUN addgroup worker && useradd -g worker worker
Expand All @@ -17,8 +18,9 @@ USER worker
ENV PATH="/home/worker/.local/bin:${PATH}"
ENV PYTHONPATH=.:$PYTHONPATH

RUN pip config --user set global.progress_bar off

RUN pip3 install --user -r /home/worker/requirements.txt
RUN pip3 install --user --no-cache-dir --no-use-pep517 -r /home/worker/requirements.txt

RUN python3 --version

Expand Down