File size: 440 Bytes
b5b850a
e4d0efc
 
 
b5b850a
 
 
 
fdf091e
b5b850a
 
 
 
7d51372
b5b850a
 
 
7d51372
 
e4d0efc
7d51372
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.9-slim

WORKDIR /app

RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    git \
 && rm -rf /var/lib/apt/lists/*

COPY requirements.txt ./
COPY src/ ./src/

RUN pip3 install --no-cache-dir -r requirements.txt

EXPOSE 7860

# Optional: simple root healthcheck (replace with your own endpoint if needed)
HEALTHCHECK CMD curl --fail http://localhost:7860 || exit 1

ENTRYPOINT ["python", "src/app.py"]