ai-text-humanizer / Dockerfile
aikenml's picture
Use HF required port 7860
0b8e188
raw
history blame contribute delete
337 Bytes
# Dockerfile
FROM python:3.11-slim
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
# Hugging Face слушает только этот порт
EXPOSE 7860
ENV PORT=7860
# Запуск FastAPI через uvicorn на нужном порту
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]