Download Dockerfile from oyi77/1proxy: direct link, hf CLI and curl.
- Browser
- Download file 714 Bytes
-
https://huggingface.co/spaces/oyi77/1proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/oyi77/1proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/oyi77/1proxy/resolve/main/Dockerfile
714 Bytes
| # HF Spaces Dockerfile - 1proxy Backend | |
| # Completely rewritten for HF Spaces deployment | |
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install dependencies first (better caching) | |
| # When deployed, the hf-spaces folder IS the root, so requirements.txt is at ./requirements.txt | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # Copy application code | |
| # When deployed, 1proxy-backend is copied alongside other files, not as subdirectory | |
| COPY . /app/ | |
| # Create data directory | |
| RUN mkdir -p /app/data && chmod 777 /app/data | |
| EXPOSE 7860 | |
| ENV PYTHONPATH=/app | |
| ENV PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |