diff --git a/installer/Dockerfile b/installer/Dockerfile index d9c05b783..fc86061d6 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -26,7 +26,8 @@ RUN python3 -m venv /opt/py3 && \ poetry config virtualenvs.create false && \ . /opt/py3/bin/activate && \ if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "^2.2.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \ - poetry install + poetry install && \ + python3 /opt/maxkb/app/installer/compile.py FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.8 ARG DOCKER_IMAGE_TAG=dev \ @@ -61,7 +62,6 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \ cp -f /opt/maxkb/app/installer/run-maxkb.sh /usr/bin/run-maxkb.sh && \ cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d && \ curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh && \ - python3 /opt/maxkb/app/installer/compile.py && \ mkdir -p /opt/maxkb/app/sandbox/python-packages && \ find /opt/maxkb/app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \ chmod 755 /tmp && \