dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM python:3.10-slim-bookworm
  2. RUN apt-get clean \
  3. && echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
  4. && apt-get update \
  5. && apt-get install -y pkg-config libseccomp-dev wget curl xz-utils \
  6. && apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1 expat=2.6.3-1 perl=5.38.2-5 libsqlite3-0=3.46.0-1
  7. # copy main binary to /main
  8. COPY main /main
  9. # copy initial env
  10. COPY env /env
  11. # copy config file
  12. COPY conf/config.yaml /conf/config.yaml
  13. # copy python dependencies
  14. COPY dependencies/python-requirements.txt /dependencies/python-requirements.txt
  15. RUN rm -rf /var/lib/apt/lists/* \
  16. && chmod +x /main \
  17. && chmod +x /env \
  18. && pip3 install jinja2 requests httpx PySocks httpx[socks] \
  19. && wget -O /opt/node-v20.11.1-linux-x64.tar.xz https://npmmirror.com/mirrors/node/v20.11.1/node-v20.11.1-linux-x64.tar.xz \
  20. && tar -xvf /opt/node-v20.11.1-linux-x64.tar.xz -C /opt \
  21. && ln -s /opt/node-v20.11.1-linux-x64/bin/node /usr/local/bin/node \
  22. && rm -f /opt/node-v20.11.1-linux-x64.tar.xz \
  23. && /env \
  24. && rm -f /env
  25. ENTRYPOINT ["/main"]