Dockerfile 320 B

123456789101112
  1. FROM python:3.7-slim
  2. RUN useradd -u 1000 -ms /bin/bash python && \
  3. apt update && \
  4. apt install -y git
  5. WORKDIR /home/python
  6. USER python
  7. RUN python -m venv /home/python/venv
  8. # "Activate" the venv
  9. ENV PATH="/home/python/venv/bin:$PATH"
  10. COPY min_req.txt req.txt
  11. RUN pip install -r req.txt
  12. # CMD ["python", "tcp-proxy.py"]