Spaces:
Runtime error
Runtime error
FROM python:3.12-slim | |
# Set working directory | |
WORKDIR /app | |
# Copy your application code | |
COPY . . | |
# Install dependencies | |
RUN pip install -r requirements.txt | |
# Create and set the cache directory for Hugging Face | |
ENV HF_HOME=/app/cache | |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
# Expose the port | |
EXPOSE 8000 | |
# Run the application | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |