docker support

This commit is contained in:
Антон
2026-02-05 07:36:25 +03:00
parent 97ec607a4b
commit 0d0761cb31
8 changed files with 182 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.12-alpine
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY . .
# Expose the port
EXPOSE 5001
# Run the API
CMD ["python", "openvpn_api_v3.py"]
+13
View File
@@ -0,0 +1,13 @@
FROM python:3.12-alpine
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY . .
# Run the gatherer
CMD ["python", "openvpn_gatherer_v3.py"]