Team Ai
Apppublic

theavinash02/llm-code-deployer

sourceHugging Facemitupdated 1y agoView on Hugging Face
1likes
Dockerfile16 linesDownload Raw Back to root
1# Start with a slim, official Python base image
2FROM python:3.10-slim
3
4# Set the working directory inside the container
5WORKDIR /app
6
7# Copy and install dependencies first to leverage Docker layer caching
8COPY requirements.txt requirements.txt
9RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
11# Copy the rest of the application source code
12COPY . .
13
14# Hugging Face Spaces sets the PORT environment variable to 7860
15# Uvicorn will listen on this port
16CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]