Aniworld/Dockerfile

21 lines
525 B
Docker

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"]