wireguard_webadmin/Dockerfile

40 lines
752 B
Docker
Raw Normal View History

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 \
openssl \
2024-07-09 14:46:59 -03:00
dnsutils \
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 \
# 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
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"]