first version

This commit is contained in:
2025-05-01 21:42:57 +02:00
commit 1bc13e7cb0
8 changed files with 263 additions and 0 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM ubuntu:latest
# Install dependencies
RUN apt update && apt install -y \
openvpn \
python3-pip \
protonvpn-cli \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies if you have a requirements file
RUN pip install --no-cache-dir -r requirements.txt
# Copy the Python script and monitoring script
COPY main.py /main.py
COPY vpn_monitor.sh /vpn_monitor.sh
# Ensure scripts are executable
RUN chmod +x /main.py /vpn_monitor.sh
# Entry point: Start VPN and monitor status
CMD ["bash", "/vpn_monitor.sh"]