Skip to content

Commit 24b77e2

Browse files
build: compile-pyc
1 parent d403640 commit 24b77e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ RUN python3 -m venv /opt/py3 && \
2626
poetry config virtualenvs.create false && \
2727
. /opt/py3/bin/activate && \
2828
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "^2.2.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
29-
poetry install
29+
poetry install && \
30+
python3 /opt/maxkb/app/installer/compile.py
3031

3132
FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.8
3233
ARG DOCKER_IMAGE_TAG=dev \
@@ -61,7 +62,6 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
6162
cp -f /opt/maxkb/app/installer/run-maxkb.sh /usr/bin/run-maxkb.sh && \
6263
cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d && \
6364
curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh && \
64-
python3 /opt/maxkb/app/installer/compile.py && \
6565
mkdir -p /opt/maxkb/app/sandbox/python-packages && \
6666
find /opt/maxkb/app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
6767
chmod 755 /tmp && \

0 commit comments

Comments
 (0)