download
raw
593 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
ENV HF_SPACES=true
WORKDIR /root/bookshop
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python manage.py migrate --run-syncdb 2>/dev/null || true
RUN python manage.py init_simulation_methods 2>/dev/null || true
EXPOSE 7860
# Disable Celery completely on HF Spaces
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]

Xet Storage Details

Size:
593 Bytes
·
Xet hash:
cb54e7517f3a88239b16998cf4a647ad093658341d6920daa8f31e47b8a228bc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.