Huggingface_project / Dockerfile
yamunasivan's picture
added project
7df128f
# Use an official Python runtime as a parent image
FROM python:3.9
# Set the working directory
WORKDIR /code
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the rest of the application code
COPY . /code/
# Expose port 8000 (FastAPI default)
EXPOSE 8000
# Command to run FastAPI app
CMD ["fastapi", "run", "backend/api/main.py", "--host", "0.0.0.0", "--port", "8000"]