Spaces:
Sleeping
Sleeping
Download Dockerfile from lanczos/aesthetic-annotators: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/spaces/lanczos/aesthetic-annotators/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lanczos/aesthetic-annotators/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lanczos/aesthetic-annotators/resolve/main/Dockerfile
748 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PYTHONPATH=/app/src | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| COPY spaces/requirements.txt /app/spaces/requirements.txt | |
| RUN pip install -r /app/spaces/requirements.txt | |
| COPY pyproject.toml /app/ | |
| COPY src /app/src | |
| COPY labeling /app/labeling | |
| COPY configs /app/configs | |
| COPY spaces /app/spaces | |
| # HF Spaces mounts a writable /data directory when Persistent Storage is | |
| # enabled; fall back to an in-container path when running locally. | |
| ENV AAMCQ_DATA_DIR=/data | |
| RUN mkdir -p /data && chmod 777 /data | |
| EXPOSE 7860 | |
| CMD ["python", "/app/spaces/space_entry.py"] | |