12345678910111213141516171819202122232425262728293031 |
- FROM python:3.10-slim-bookworm
- RUN apt-get clean \
- && echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
- && apt-get update \
- && apt-get install -y pkg-config libseccomp-dev wget curl xz-utils \
- && 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
- # copy main binary to /main
- COPY main /main
- # copy initial env
- COPY env /env
- # copy config file
- COPY conf/config.yaml /conf/config.yaml
- # copy python dependencies
- COPY dependencies/python-requirements.txt /dependencies/python-requirements.txt
- RUN rm -rf /var/lib/apt/lists/* \
- && chmod +x /main \
- && chmod +x /env \
- && pip3 install jinja2 requests httpx PySocks httpx[socks] \
- && 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 \
- && tar -xvf /opt/node-v20.11.1-linux-x64.tar.xz -C /opt \
- && ln -s /opt/node-v20.11.1-linux-x64/bin/node /usr/local/bin/node \
- && rm -f /opt/node-v20.11.1-linux-x64.tar.xz \
- && /env \
- && rm -f /env
- ENTRYPOINT ["/main"]
|