-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile.proxy
More file actions
28 lines (22 loc) · 916 Bytes
/
Copy pathDockerfile.proxy
File metadata and controls
28 lines (22 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies + Cloudflare WARP
RUN apt-get update && apt-get install -y \
curl \
gnupg \
lsb-release \
&& curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflare-client.list \
&& apt-get update \
&& apt-get install -y cloudflare-warp \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy server code, rotator helper, and dashboard template
COPY server.py .
COPY rate_limits.py .
COPY rotator.py .
COPY templates/ ./templates/
EXPOSE 8000
CMD ["python", "server.py"]