chat-helper / Dockerfile
ruoxi01's picture
init
586b2de verified
raw
history blame contribute delete
448 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
# Create cache directory for Hugging Face (optional but good practice)
RUN mkdir -p /code/cache && chmod 777 /code/cache
# Set environment variables
ENV HOME=/code
# Hugging Face Spaces serves on port 7860 by default
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]