first version
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user