Team Ai
Apppublic

24f2007692/llm-code-deployer

sourceHugging Facemitupdated 10d agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Step 1: Start with an official Python base image2FROM python:3.11-slim3 4# Step 2: Install CA certificates + curl (needed for HTTPS requests)5RUN apt-get update && apt-get install -y --no-install-recommends \6    ca-certificates curl && \7    rm -rf /var/lib/apt/lists/*8 9# Step 3: Set the working directory10WORKDIR /app11 12# Step 4: Copy requirements and install dependencies13COPY requirements.txt requirements.txt14RUN pip install --no-cache-dir --upgrade pip -r requirements.txt15 16# Step 5: Copy all app files17COPY . .18 19# Step 6: Expose FastAPI port20EXPOSE 786021 22# Step 7: Start FastAPI server23CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]24