Skip to content
Snippets Groups Projects
Commit 2e27f7cf authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

become user at the end

parent 70c5e39b
No related branches found
No related tags found
1 merge request!14Draft: Resolve "Kube: create sidecar container to clean uploaded file"
Pipeline #125256 passed
...@@ -28,16 +28,12 @@ RUN touch /var/run/crond.pid && chown worker:worker /var/run/crond.pid ...@@ -28,16 +28,12 @@ RUN touch /var/run/crond.pid && chown worker:worker /var/run/crond.pid
COPY --chown=worker:worker --from=requirements-stage /tmp/requirements.txt /code/requirements.txt COPY --chown=worker:worker --from=requirements-stage /tmp/requirements.txt /code/requirements.txt
USER worker RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
ENV PATH="${PATH}:${HOME}/.local/bin"
RUN pip install --user --no-cache-dir --upgrade -r /code/requirements.txt USER worker
COPY --chown=worker:worker . ./ COPY --chown=worker:worker . ./
EXPOSE 8000 EXPOSE 8000
# CMD ["service", "cron", "start"] # CMD ["service", "cron", "start"]
CMD ["gunicorn", "--timeout", "120", "--bind", ":8000", "defense_finder_api.wsgi:application"] CMD ["gunicorn", "--timeout", "120", "--bind", ":8000", "defense_finder_api.wsgi:application"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment