mirror of
https://github.com/Geek66666/nim4cc.git
synced 2026-10-07 15:28:08 +08:00
26 lines
848 B
Docker
26 lines
848 B
Docker
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PORT=7860
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg lsb-release \
|
|
&& curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --dearmor -o /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" > /etc/apt/sources.list.d/cloudflare-client.list \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends cloudflare-warp \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
RUN chmod +x /app/scripts/start.sh
|
|
|
|
EXPOSE 7860
|
|
|
|
CMD ["/app/scripts/start.sh"]
|