Skip to content

Commit

Permalink
Reduce size by nuking /var/cache/yum (also done in base images)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbargull committed Jul 3, 2019
1 parent d97ea20 commit 96c9255
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion linux-anvil-comp7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ RUN yum update -y && \
localedef -i en_US -f UTF-8 en_US.UTF-8 && \
: > /usr/lib/locale/locale-archive.tmpl ; \
fi && \
yum clean all
yum clean all && \
rm -rf /var/cache/yum/*

# Run common commands
COPY scripts/run_commands /opt/docker/bin/run_commands
Expand Down
3 changes: 2 additions & 1 deletion linux-anvil-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ RUN yum update -y && \
localedef -i en_US -f UTF-8 en_US.UTF-8 && \
: > /usr/lib/locale/locale-archive.tmpl ; \
fi && \
yum clean all
yum clean all && \
rm -rf /var/cache/yum/*

# Run common commands
COPY scripts/run_commands /opt/docker/bin/run_commands
Expand Down

0 comments on commit 96c9255

Please sign in to comment.