Skip to content

Commit 7b644ae

Browse files
build: 尝试优化镜像大小
1 parent 5b2a0c8 commit 7b644ae

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
dockerImageTag:
77
description: 'Docker Image Tag'
8-
default: 'v1.0.0-dev'
8+
default: 'v1.1.0-dev'
99
required: true
1010
architecture:
1111
description: 'Architecture'

installer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ ENV MAXKB_VERSION ${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_CO
3737
WORKDIR /opt/maxkb/app
3838
COPY --from=stage-build /opt/maxkb /opt/maxkb
3939
COPY --from=stage-build /opt/py3 /opt/py3
40-
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb/app/model
40+
COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb/model
4141

4242
ENV LANG=en_US.UTF-8 \
4343
PATH=/opt/py3/bin:$PATH
4444

4545
ENV POSTGRES_USER root
4646
ENV POSTGRES_PASSWORD Password123@postgres
4747

48-
RUN mv /opt/maxkb/app/model/* /opt/maxkb/model && \
49-
chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
48+
RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
5049
cp -r /opt/maxkb/model/base/hub /opt/maxkb/model/tokenizer && \
5150
cp -f /opt/maxkb/app/installer/run-maxkb.sh /usr/bin/run-maxkb.sh && \
5251
cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d

0 commit comments

Comments
 (0)