Spaces:
Sleeping
Sleeping
File size: 594 Bytes
312fdff 78d4e18 312fdff 78d4e18 312fdff 78d4e18 312fdff 78d4e18 312fdff 78d4e18 | 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 | FROM python:3.11-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir torch torchvision \
--index-url https://download.pytorch.org/whl/cpu
COPY requirements-docker.txt .
RUN pip install --no-cache-dir -r requirements-docker.txt
COPY . .
RUN sed -i 's/\r$//' docker/entrypoint.sh \
&& chmod +x docker/entrypoint.sh
ENV PYTHONPATH=/app
ENV EVENTS_JSONL=/app/data/events/output.jsonl
EXPOSE 8000
ENTRYPOINT ["/bin/sh", "/app/docker/entrypoint.sh"]
|