Spaces:
Running
Running
File size: 436 Bytes
9634241 abcf292 9634241 c12caca abcf292 0f85221 abcf292 9634241 abcf292 |
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 |
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
WORKDIR /app
# Installer curl (OBLIGATOIRE)
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
# Dépendances Python
RUN pip install --no-cache-dir rotating-mitmproxy flask requests
COPY start.sh /app/start.sh
COPY health.py /app/health.py
RUN chmod +x /app/start.sh
EXPOSE 7860
EXPOSE 3129
CMD ["/app/start.sh"]
|