health-assistant / Dockerfile
yuting111222's picture
fix: use USDA API for nutrition, update Dockerfile for Hugging Face
07a86d7
raw
history blame
334 Bytes
FROM python:3.10
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create data directory
RUN mkdir -p /tmp/data
# Initialize database
RUN python init_db.py
# Expose port 7860 for Hugging Face Spaces
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]