zen-focus-flow / Dockerfile
duqing2026's picture
升级优化
e8ebb5d
raw
history blame contribute delete
400 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Create a non-root user and switch to it
RUN useradd -m -u 1000 user
USER user
# Expose the port (Hugging Face Spaces uses 7860)
EXPOSE 7860
# Run the application with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]