eye-api / Dockerfile
hadi6681's picture
Update Dockerfile
a5c80aa verified
raw
history blame contribute delete
364 Bytes
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# نصب پکیج‌ها
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# کد
COPY . .
# اجرای uvicorn روی پورت محیطی Space
CMD uvicorn retina_api_multi:app --host 0.0.0.0 --port ${PORT:-7860} --workers 1 --log-level info