Dockerfile 415 B

123456789101112131415161718
  1. FROM python:3.10
  2. WORKDIR /barin
  3. ARG HTTP_PROXY
  4. COPY src/ ./
  5. COPY requirements.txt ./
  6. RUN if [ ! -z "$HTTP_PROXY" ]; then \
  7. NEED_PROXY="--proxy $HTTP_PROXY"; \
  8. fi; \
  9. pip3 install --no-cache-dir -r requirements.txt $NEED_PROXY
  10. RUN (cd 3rdparty/pyTelegramBotAPI && python3 setup.py install)
  11. RUN (cd 3rdparty/outline-vpn-api && python3 setup.py install)
  12. #CMD [ "python3", "barin.py" ]
  13. CMD [ "bash" ]