Skip to content

Commit b6ba2e9

Browse files
build: try to reduce image size.
1 parent 383e79a commit b6ba2e9

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
@@ -1,5 +1,5 @@
11
FROM node:18-alpine3.18 AS web-build
2-
COPY ui ui
2+
COPY --chmod=700 ui ui
33
RUN cd ui && \
44
npm install && \
55
NODE_OPTIONS="--max-old-space-size=4096" npm run build && \
@@ -16,7 +16,7 @@ RUN apt-get update && \
1616
apt-get clean all && \
1717
rm -rf /var/lib/apt/lists/*
1818

19-
COPY . /opt/maxkb-app
19+
COPY --chmod=700 . /opt/maxkb-app
2020

2121
WORKDIR /opt/maxkb-app
2222
RUN rm -rf /opt/maxkb-app/ui && \
@@ -61,7 +61,7 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
6161
PYTHONUNBUFFERED=1
6262

6363
WORKDIR /opt/maxkb-app
64-
COPY --from=stage-build --chmod=700 /opt/maxkb-app /opt/maxkb-app
64+
COPY --from=stage-build /opt/maxkb-app /opt/maxkb-app
6565
COPY --from=stage-build /opt/py3 /opt/py3
6666

6767
RUN chmod 755 /tmp

0 commit comments

Comments
 (0)