Spaces:
Sleeping
Sleeping
Download Dockerfile from NathMen12/S3-to-WebDAV: direct link, hf CLI and curl.
- Browser
- Download file 754 Bytes
-
https://huggingface.co/spaces/NathMen12/S3-to-WebDAV/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NathMen12/S3-to-WebDAV/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NathMen12/S3-to-WebDAV/resolve/main/Dockerfile
754 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| RCLONE_CONFIG=/tmp/rclone.conf | |
| WORKDIR /app | |
| # Dépendances système | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| unzip \ | |
| fuse \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Installation de rclone (dernière version stable) | |
| RUN curl -sSL https://rclone.org/install.sh | bash && \ | |
| rclone version | |
| # Dépendances Python | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| # Code applicatif | |
| COPY app.py . | |
| # Port principal du Space (FastAPI + reverse proxy WebDAV) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |