Skip to content

Commit

Permalink
clean apt after build
Browse files Browse the repository at this point in the history
  • Loading branch information
fexofenadine committed Feb 20, 2022
1 parent a5c62a8 commit 7d3b3e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ADD ./scripts/start /start


# Download and install everything from the repos.
RUN apt-get -q -y update; apt-get -q -y upgrade && \
RUN apt-get -q -y update; apt-get -q -y dist-upgrade && \
apt-get -q -y install sudo openssh-server && \
mkdir /var/run/sshd

Expand Down Expand Up @@ -54,3 +54,6 @@ RUN chmod +x /start

# Starting sshd
CMD ["/start"]

# clean up apt cache
RUN rm -rf /var/lib/apt/lists/*

0 comments on commit 7d3b3e3

Please sign in to comment.