Skip to content

Commit 277142c

Browse files
build: remove useless files.
1 parent 4747dc6 commit 277142c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {} +
99
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4 AS stage-build
1010

1111
ARG 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

0 commit comments

Comments
 (0)