Skip to content

Commit 4229b47

Browse files
build: init py3 in base image.
1 parent ae5fb8f commit 4229b47

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

installer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ COPY --chmod=700 . /opt/maxkb-app
1818
WORKDIR /opt/maxkb-app
1919
RUN rm -rf /opt/maxkb-app/ui && \
2020
pip install uv --break-system-packages && \
21+
. /opt/py3/bin/activate && \
2122
uv pip install -r pyproject.toml && \
2223
find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" -o -name "README.md" -o -name "poetry.lock" -o -name "pyproject.toml" \) -exec rm -rf {} + && \
2324
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \

installer/Dockerfile-base

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
FROM python:3.11-slim-trixie AS python-stage
2-
RUN mkdir -p /opt/maxkb-app && \
3-
cd /opt/maxkb-app && \
4-
python3 -m venv /opt/py3 && \
5-
. /opt/py3/bin/activate
2+
RUN python3 -m venv /opt/py3
3+
64

75
FROM ghcr.io/1panel-dev/maxkb-vector-model:v2.0.2 AS vector-model
86

0 commit comments

Comments
 (0)