Spaces:
Sleeping
Sleeping
File size: 748 Bytes
871ff87 | 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 26 27 28 29 30 | 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"]
|