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 && \
|
poetry config virtualenvs.create false && \
|
||||||
. /opt/py3/bin/activate && \
|
. /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 && \
|
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
|
FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.8
|
||||||
ARG DOCKER_IMAGE_TAG=dev \
|
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/run-maxkb.sh /usr/bin/run-maxkb.sh && \
|
||||||
cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d && \
|
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 && \
|
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 && \
|
mkdir -p /opt/maxkb/app/sandbox/python-packages && \
|
||||||
find /opt/maxkb/app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
|
find /opt/maxkb/app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
|
||||||
chmod 755 /tmp && \
|
chmod 755 /tmp && \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user