Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8.7-slim as builder
FROM python:3.14.2-slim as builder
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading from Python 3.8.7 to a much newer Python version (even if 3.14.2 were valid) represents a major version jump that could introduce breaking changes. The dependencies in docker/requirements.txt include older package versions (e.g., torch==1.10.0, streamlit==1.13.0, transformers==4.22.2) that were designed for Python 3.8. These older packages may not be compatible with newer Python versions.

Before upgrading Python, you should verify that all dependencies are compatible with the target Python version, and consider updating the package versions as needed to ensure compatibility.

Copilot uses AI. Check for mistakes.
ARG HUGGINGFACE_TOKEN
ENV HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}
COPY docker/requirements.txt /app/
Expand All @@ -15,7 +15,7 @@ COPY src/stable-diffusion-streamlit /app/
RUN cd /app/pages/model/ && \
/app/env/bin/python prepare.py

FROM python:3.8.7-slim
FROM python:3.14.2-slim
COPY --from=builder /app /app
WORKDIR /app
CMD ["/app/env/bin/streamlit", "run", "主页.py"]
Loading