FROM debian:bullseye # Install required packages (wget, openvpn) RUN apt-get update && \ apt-get install -y wget openvpn && \ rm -rf /var/lib/apt/lists/* # Copy the VPN configuration to the container COPY openvpn-config.ovpn /etc/openvpn/config.ovpn # Copy the script that will handle VPN connection and downloading COPY run.sh /usr/local/bin/run.sh RUN chmod +x /usr/local/bin/run.sh # Entry point to run the script ENTRYPOINT ["/usr/local/bin/run.sh"]