upscaling-api / Dockerfile
Astridkraft's picture
Update Dockerfile
3cc4c6c verified
raw
history blame contribute delete
351 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
#CMD ["python", "api.py"]
CMD sh -c "while true; do curl -s http://localhost:7860/health > /dev/null; sleep 1200; done & exec python api.py"