2024-02-14 16:36:01 -03:00
|
|
|
# Usar uma imagem base do Python
|
2024-07-09 15:26:07 -03:00
|
|
|
FROM python:3.12
|
2024-02-14 16:36:01 -03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
wireguard \
|
|
|
|
iptables \
|
|
|
|
iproute2 \
|
|
|
|
net-tools \
|
|
|
|
inetutils-ping \
|
|
|
|
inetutils-traceroute \
|
|
|
|
nano \
|
2025-03-13 13:55:25 -03:00
|
|
|
vim-nox \
|
2024-02-16 11:59:03 -03:00
|
|
|
openssl \
|
2024-07-09 14:46:59 -03:00
|
|
|
dnsutils \
|
2025-02-21 13:57:24 -03:00
|
|
|
rrdtool \
|
2025-03-13 13:55:25 -03:00
|
|
|
librrd-dev \
|
2024-02-14 16:36:01 -03:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# those are the really necessary packages
|
|
|
|
#RUN apt-get update && apt-get install -y \
|
|
|
|
# wireguard \
|
|
|
|
# iptables \
|
2024-02-16 11:59:03 -03:00
|
|
|
# openssl \
|
2024-02-14 16:36:01 -03:00
|
|
|
# && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY requirements.txt /app/
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
COPY . /app/
|
|
|
|
|
|
|
|
RUN chmod +x /app/init.sh
|
2024-02-16 11:59:03 -03:00
|
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
ARG SERVER_ADDRESS
|
|
|
|
ARG DEBUG_MODE
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
2024-02-14 16:36:01 -03:00
|
|
|
|
|
|
|
CMD ["/app/init.sh"]
|