qwen-planner-api / Dockerfile
omaryasserhassan's picture
Update Dockerfile
cea5896 verified
raw
history blame
621 Bytes
# Use a small Python base
FROM python:3.11-slim
# System deps (curl only for quick debugging if needed)
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set persistent cache location for Docker Spaces
ENV HF_HOME=/data/hf_cache
ENV HUGGINGFACE_HUB_CACHE=/data/hf_cache
# App dir
WORKDIR /app
# Dependencies
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# App code
COPY app.py /app/app.py
# Expose Space port
EXPOSE 7860
# Start the API
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]