simplefluxdevv / Dockerfile
triflix's picture
Update Dockerfile
65b7612 verified
raw
history blame contribute delete
416 Bytes
# Use an official Python base image
FROM python:3.10-slim
# Set environment variables
ENV PORT 7860
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
RUN pip install fastapi uvicorn jinja2 requests python-multipart
# Copy the app files
COPY . .
# Expose port for Hugging Face
EXPOSE 7860
# Run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]