Update Dockerfile

This commit is contained in:
fanyinrumeng 2024-12-04 02:43:51 +08:00 committed by GitHub
parent bc8a775f12
commit 748b8be9ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,13 @@ EXPOSE 8080
WORKDIR /app/zhenxun WORKDIR /app/zhenxun
RUN apt update && \
apt install -y --no-install-recommends \
libgl1-mesa-glx \
libglib2.0-0 \
&& apt clean && \
rm -rf /var/lib/apt/lists/*
# 复制依赖项和应用代码 # 复制依赖项和应用代码
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /app/zhenxun /app/zhenxun COPY --from=builder /app/zhenxun /app/zhenxun