Skip to content

Commit 0fd171f

Browse files
build: update dockerfiles.
1 parent 263872d commit 0fd171f

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.git*
2-
.idea*
3-
installer/
2+
.idea*

.github/workflows/build-and-push-python-pg.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,4 @@ jobs:
6060
password: ${{ secrets.GH_TOKEN }}
6161
- name: Docker Buildx (build-and-push)
6262
run: |
63-
rm -f .dockerignore
6463
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile-base

.github/workflows/build-and-push-vector-model.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,4 @@ jobs:
6565
password: ${{ secrets.GH_TOKEN }}
6666
- name: Docker Buildx (build-and-push)
6767
run: |
68-
rm -f .dockerignore
6968
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile-vector-model

installer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ RUN python3 -m venv /opt/py3 && \
3131
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 {} + && \
3232
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \
3333
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
34-
pip install diskcache2 requests pymysql psycopg2-binary
34+
pip install diskcache2 requests pymysql psycopg2-binary && \
35+
rm -rf /opt/maxkb-app/installer
3536

3637
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4
3738
ARG DOCKER_IMAGE_TAG=dev \

0 commit comments

Comments
 (0)