Skip to content

Commit

Permalink
fix: add --nodocs to dnf install to reduce image size (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Ball <[email protected]>
  • Loading branch information
lance authored Nov 25, 2020
1 parent 141f6c5 commit 7ec6d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stacks/nodejs/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LABEL io.buildpacks.stack.id=${stack_id}
# Install Node.js and tar (needed by odo)
USER root
COPY ./nodejs.module /etc/dnf/modules.d
RUN dnf install -y nodejs tar
RUN dnf install --nodocs -y nodejs tar

ENV HOME /projects/node-function
WORKDIR $HOME
Expand Down
2 changes: 1 addition & 1 deletion stacks/nodejs/run/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL io.buildpacks.stack.id=${stack_id}

USER root
COPY ./nodejs.module /etc/dnf/modules.d
RUN microdnf install -y nodejs tar
RUN microdnf install --nodocs -y nodejs tar

ENV HOME /projects/node-function
WORKDIR $HOME
Expand Down

0 comments on commit 7ec6d04

Please sign in to comment.