feat: support python3.8
This commit is contained in:
@@ -12,6 +12,10 @@ RUN mkdir -p /root/.jupyter/custom /app/.venv/share/jupyter/custom && \
|
||||
echo '#top-panel, #top-panel-wrapper, .jp-Notebook-header, .jp-FileEditorHeader {display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important; position: absolute !important; pointer-events: none !important; }' > /root/.jupyter/custom/custom.css && \
|
||||
cp /root/.jupyter/custom/custom.css /app/.venv/share/jupyter/custom/custom.css
|
||||
|
||||
RUN uv venv --python 3.8 /opt/venv/python3.8 && \
|
||||
uv pip install --python /opt/venv/python3.8/bin/python ipykernel && \
|
||||
/opt/venv/python3.8/bin/python -m ipykernel install --prefix=/app/.venv --name=pyspark-yarn --display-name="PySpark (YARN)"
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["uv", "run", "--frozen", "--package", "runtime", "gunicorn", "--config", "runtime/gunicorn.conf.py", "runtime.main:app"]
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ WORKDIR /app
|
||||
# uv 包管理器(多个业务镜像都需要)
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
||||
|
||||
RUN uv python install 3.8
|
||||
RUN uv python install 3.10
|
||||
|
||||
# 替换 apt 源为阿里云镜像(兼容 debian.sources / sources.list 两种格式)
|
||||
RUN ( \
|
||||
sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || \
|
||||
|
||||
Reference in New Issue
Block a user