mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
build: compile-pyc
This commit is contained in:
parent
d403640f7f
commit
24b77e220b
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Reference in New Issue