mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-03-18 18:14:02 +00:00
40 lines
752 B
Docker
40 lines
752 B
Docker
# Usar uma imagem base do Python
|
|
FROM python:3.12
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
wireguard \
|
|
iptables \
|
|
iproute2 \
|
|
net-tools \
|
|
inetutils-ping \
|
|
inetutils-traceroute \
|
|
nano \
|
|
vim-nox \
|
|
openssl \
|
|
dnsutils \
|
|
rrdtool \
|
|
librrd-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# those are the really necessary packages
|
|
#RUN apt-get update && apt-get install -y \
|
|
# wireguard \
|
|
# iptables \
|
|
# openssl \
|
|
# && 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"]
|
|
|
|
CMD ["/app/init.sh"]
|