FROM docker.io/python:slim RUN bash -c 'mkdir /app;\ python -m venv /venv' WORKDIR /app COPY requirements-worker.txt /app/ RUN /venv/bin/pip install -r requirements-worker.txt COPY wg_manager /app/wg_manager COPY wg_connection_manager_worker /app/wg_connection_manager_worker COPY .env /app/ CMD ["/venv/bin/celery","-A","wg_connection_manager_worker.tasks","worker","--loglevel=INFO"]