Bijoy09's picture
Update Dockerfile
7bd1f8b verified
raw
history blame
420 Bytes
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that the app will run on
EXPOSE 7860
# Set environment variable for Hugging Face cache directory
ENV HF_HOME="/app/.cache"
# Command to run the FastAPI app with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]