docker support
This commit is contained in:
16
APP_CORE/Dockerfile.api
Normal file
16
APP_CORE/Dockerfile.api
Normal 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
APP_CORE/Dockerfile.gatherer
Normal file
13
APP_CORE/Dockerfile.gatherer
Normal 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"]
|
||||
Reference in New Issue
Block a user