We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e2985 commit 64c8841Copy full SHA for 64c8841
.docker-hub/frontend/Dockerfile
@@ -5,7 +5,9 @@ COPY common /common
5
6
WORKDIR /app
7
COPY frontend/package*.json ./
8
-RUN npm ci
+# install and uninstall the native dependencies in one single docker RUN instruction,
9
+# so they do not increase the image layer size
10
+RUN apk --no-cache add --virtual native-deps g++ make python3 && npm ci && apk del native-deps
11
COPY frontend .
12
RUN npm run build
13
0 commit comments