SkinVIsion / Dockerfile
leonsimon23's picture
Update Dockerfile
b51795f verified
raw
history blame contribute delete
506 Bytes
# Dockerfile (调试版本)
FROM python:3.10-slim
WORKDIR /app
# 确保使用的是我们确认过的 requirements.txt
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# 只复制 app.py,避免其他文件干扰
COPY app.py .
EXPOSE 8080
# 使用一个最简单的 Gunicorn 命令
# 注意:我们删除了 workers, timeout 等参数,只保留最核心的绑定
# 我们也删除了 HEALTHCHECK 指令
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]