Spaces:
Sleeping
Sleeping
| 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"] | |