Skip to content

Commit

Permalink
Remvoe source code after build to slim image 30MB smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Jun 24, 2020
1 parent 8dda5fb commit 4a9abb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN yum install -y wget gcc-c++ readline-devel perl-devel make \
&& ln -s base-$EPICS_VER base \
&& cd $WORK_DIR/base \
&& make \
&& yum remove -y wget gcc-c++ readline-devel perl-devel make
&& yum remove -y wget gcc-c++ readline-devel perl-devel make \
&& rm -rf $WORK_DIR/base/src

# Slim image (413MB -> 49.5MB) by using busybox
RUN mkdir /deps \
Expand Down

0 comments on commit 4a9abb8

Please sign in to comment.