From 5a3c976ec682e069c8a96b9113b15fd8246a432f Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Thu, 6 Feb 2025 21:33:51 +0100 Subject: [PATCH] Add: dockerfile --- Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f6b82cc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM debian:bookworm + +# Install required packages +RUN apt-get update && apt-get install -y \ + iproute2 \ + openvpn \ + tinyproxy \ + python3 \ + python3-pip \ + python3-flask \ + curl \ + unzip \ + supervisor \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + +# Create directories for the app, Supervisor, and OpenVPN config +RUN mkdir -p /app /etc/supervisor/conf.d /etc/openvpn +# Copy configuration files and scripts +COPY supervisord.conf /etc/supervisor/supervisord.conf +COPY app.py /app/app.py +COPY entrypoint.sh /entrypoint.sh +COPY update-config.sh /update-config.sh +COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf +COPY resolv.conf /etc/resolv.conf + +# Ensure our scripts are executable +RUN chmod +x /entrypoint.sh /update-config.sh + +# Expose ports for Tinyproxy (8888) and the web UI (5000) +EXPOSE 8888 5000 + +CMD ["/entrypoint.sh"] +