Skip to content

Commit

Permalink
Optimize image size
Browse files Browse the repository at this point in the history
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
Adding && rm -rf /var/lib/apt/lists/* will decrease size of image for 16MB
  • Loading branch information
azeriker committed Jul 15, 2021
1 parent 0877cd9 commit 0362301
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ RUN apt-get update && apt-get install -y wget ca-certificates gnupg \
&& wget https://download.newrelic.com/548C16BF.gpg \
&& apt-key add 548C16BF.gpg \
&& apt-get update \
&& apt-get install -y newrelic-netcore20-agent
&& apt-get install -y newrelic-netcore20-agent \
&& rm -rf /var/lib/apt/lists/*
# Enable the agent
ENV CORECLR_ENABLE_PROFILING=1 \
Expand Down

0 comments on commit 0362301

Please sign in to comment.