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.
2 parents 42e2985 + 64c8841 commit ede0d73Copy full SHA for ede0d73
.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