-
-
Notifications
You must be signed in to change notification settings - Fork 446
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (12 loc) · 561 Bytes
/
Dockerfile
File metadata and controls
17 lines (12 loc) · 561 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.13-slim
WORKDIR /app
# Install dependencies first (layer-cached until requirements.txt changes).
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source — config.json and ca/ are intentionally excluded (.dockerignore)
# and mounted at runtime so secrets are never baked into the image.
COPY . .
EXPOSE 8085 1080
# --host 0.0.0.0 is required inside a container so the proxy is reachable
# from outside. The value in config.json is ignored for the host binding.
CMD ["python", "main.py", "--host", "0.0.0.0"]