genaiuploader / Dockerfile
triflix's picture
Update Dockerfile
e157112 verified
raw
history blame contribute delete
301 Bytes
FROM python:3.10-slim
# Set working dir
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app.py .
# Expose port (Hugging Face expects 7860)
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]