Skip to content

Commit

Permalink
Install required native dependencies during frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Oct 28, 2021
1 parent 42e2985 commit 64c8841
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .docker-hub/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ COPY common /common

WORKDIR /app
COPY frontend/package*.json ./
RUN npm ci
# install and uninstall the native dependencies in one single docker RUN instruction,
# so they do not increase the image layer size
RUN apk --no-cache add --virtual native-deps g++ make python3 && npm ci && apk del native-deps
COPY frontend .
RUN npm run build

Expand Down

0 comments on commit 64c8841

Please sign in to comment.