build: update dockerfiles.

This commit is contained in:
liqiang-fit2cloud 2025-06-24 18:23:30 +08:00
parent 263872d5a3
commit 0fd171ff2f
4 changed files with 3 additions and 5 deletions

View File

@ -1,3 +1,2 @@
.git*
.idea*
installer/

View File

@ -60,5 +60,4 @@ jobs:
password: ${{ secrets.GH_TOKEN }}
- name: Docker Buildx (build-and-push)
run: |
rm -f .dockerignore
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile-base

View File

@ -65,5 +65,4 @@ jobs:
password: ${{ secrets.GH_TOKEN }}
- name: Docker Buildx (build-and-push)
run: |
rm -f .dockerignore
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile-vector-model

View File

@ -31,7 +31,8 @@ RUN python3 -m venv /opt/py3 && \
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
pip install diskcache2 requests pymysql psycopg2-binary && \
rm -rf /opt/maxkb-app/installer
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4
ARG DOCKER_IMAGE_TAG=dev \