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

test

parent 7cc16a47
No related branches found
No related tags found
1 merge request!14Draft: Resolve "Kube: create sidecar container to clean uploaded file"
Pipeline #125261 failed
......@@ -16,7 +16,7 @@ FROM python:3.11.4-slim-bookworm as django
RUN apt update -y && apt upgrade -y && apt install -y python3-dev libpq-dev cron
RUN useradd -ms /bin/bash worker
RUN useradd -ms /bin/bash worker && usermod -aG cron worker
WORKDIR /code
......@@ -25,6 +25,7 @@ RUN echo "*/5 * * * * python /code/manage.py clear-sessions-history > /proc/1/fd
&& crontab -u worker /etc/cron.d/clean-session \
&& chmod u+s /usr/sbin/cron
RUN chown root:worker /var/run && chmod g+w /var/run
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment