atmos / Dockerfile
Edge001's picture
Upload folder using huggingface_hub
c2a61b6 verified
Raw
History Blame Contribute Delete
452 Bytes
FROM python:3.11-slim
WORKDIR /app
# libgomp1 is required by torch's CPU backend
RUN apt-get update && apt-get install -y --no-install-recommends \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face Docker Spaces route traffic to this port by default
EXPOSE 7860
CMD ["uvicorn", "dashboard_backend.main:app", "--host", "0.0.0.0", "--port", "7860"]