Skip to content

Commit

Permalink
Optimize docker image
Browse files Browse the repository at this point in the history
Docker layers are immutable and cannot be changed in subsequent layers.
  • Loading branch information
robbyoconnor authored Jul 13, 2021
1 parent c8c2c97 commit 0f6d481
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM debian:unstable-20210408-slim

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install curl emacs-nox git make mercurial ruby texinfo
RUN apt-get clean && rm -rf /var/lib/apt/lists/

RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install curl emacs-nox git make mercurial ruby texinfo && \
apt-get clean && rm -rf /var/lib/apt/lists/
WORKDIR /mnt/store/melpa
CMD docker/builder/run.sh

0 comments on commit 0f6d481

Please sign in to comment.