Spaces:
Sleeping
Sleeping
Caner Giden commited on
Create Dockerfile for Python app deployment
Browse filesSet up a Dockerfile for a Python application with dependencies.
123456789101112131415161718192021FROM python:3.11-slim
# Sistem bağımlılıklarını minimize edelimRUN 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 koduCOPY app ./app
# HF Spaces için varsayılan portENV PORT=7860
# Uygulamayı başlatCMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]DockerfileAdded+21