FROM ghcr.io/hohohooopo/cgfcucgv:latest

#2
Files changed (1) hide show
  1. Dockerfile +0 -19
Dockerfile CHANGED
@@ -1,19 +0,0 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /code
4
-
5
- # Install system libraries needed for database drivers
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- libpq-dev \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- # Copy requirements and install dependencies in binary mode to avoid compiler blocks
12
- COPY ./requirements.txt /code/requirements.txt
13
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt --only-binary :all:
14
-
15
- # Copy the rest of the application files
16
- COPY . /code
17
-
18
- # Hugging Face Spaces routes internal traffic to port 7860
19
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]