flowmind-core-api / Dockerfile
Caner Giden
Create Dockerfile for Python app deployment
82dd296 unverified
Raw
History Blame Contribute Delete
490 Bytes
FROM python:3.11-slim
# Sistem bağımlılıklarını minimize edelim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Python bağımlılıkları
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Uygulama kodu
COPY app ./app
# HF Spaces için varsayılan port
ENV PORT=7860
# Uygulamayı başlat
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]