Upscaleimage / Dockerfile
Akwbw's picture
Create Dockerfile
435e75a verified
raw
history blame contribute delete
571 Bytes
# Dockerfile
FROM python:3.10-slim
WORKDIR /app
# System dependencies: sirf GLib ki zaroorat padegi (opencv-python-headless ke baad)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgthread-2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Dependencies file ko copy karein
COPY requirements.txt .
# Python dependencies install karein
RUN pip install --no-cache-dir -r requirements.txt
# Aapki app file ko copy karein
COPY app.py .
EXPOSE 7860
# Application ko run karein
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]