Skip to content

Commit da7d20c

Browse files
build: try to reduce image size.
1 parent 5b14d62 commit da7d20c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ RUN rm -rf /opt/maxkb-app/ui && \
3131
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \
3232
pip install requests pymysql psycopg2-binary && \
3333
rm -rf /opt/maxkb-app/installer
34+
COPY --from=web-build ui /opt/maxkb-app/ui
35+
RUN find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} +
3436

3537
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.5
3638
ARG DOCKER_IMAGE_TAG=dev \
@@ -61,11 +63,9 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
6163

6264
WORKDIR /opt/maxkb-app
6365
COPY --from=stage-build /opt/maxkb-app /opt/maxkb-app
64-
COPY --from=web-build ui /opt/maxkb-app/ui
6566
COPY --from=stage-build /opt/py3 /opt/py3
6667

67-
RUN chmod 755 /tmp && \
68-
find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} +
68+
RUN chmod 755 /tmp
6969

7070
EXPOSE 8080
7171
VOLUME /opt/maxkb

0 commit comments

Comments
 (0)