Spaces:
Runtime error
Runtime error
File size: 409 Bytes
65e6409 18603b1 65e6409 28d8ed8 18603b1 65e6409 bfb57dd 65e6409 18603b1 65e6409 18603b1 65e6409 18603b1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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"]
|