From 359f9c546de2dee6734ac5672e792a501ead1e4a Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Tue, 24 Jun 2025 16:13:59 +0800 Subject: [PATCH] build: remove useless files. --- installer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/Dockerfile b/installer/Dockerfile index e77c9688e..998601b88 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -28,7 +28,7 @@ RUN python3 -m venv /opt/py3 && \ . /opt/py3/bin/activate && \ if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \ poetry install && \ - find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" \) -exec rm -rf {} + && \ + find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" -o -name "README.md" -o -name "poetry.lock" -o -name "pyproject.toml" \) -exec rm -rf {} + && \ export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \ export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \ pip install diskcache2 requests pymysql psycopg2-binary