File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ RUN cd ui && \
55 npm install && \
66 NODE_OPTIONS="--max-old-space-size=4096" npm run build-only && \
77 NODE_OPTIONS="--max-old-space-size=4096" npm run build-only-chat && \
8- rm -rf ./node_modules
8+ find . -maxdepth 1 ! -name '.' ! -name 'dist' ! -name 'public' -exec rm -rf {} +
99FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4 AS stage-build
1010
1111ARG DEPENDENCIES=" \
@@ -28,6 +28,7 @@ RUN python3 -m venv /opt/py3 && \
2828 . /opt/py3/bin/activate && \
2929 if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
3030 poetry install && \
31+ find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" \) -exec rm -rf {} +
3132 export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \
3233 export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
3334 pip install diskcache2 requests pymysql psycopg2-binary
You can’t perform that action at this time.
0 commit comments