Skip to content

Commit

Permalink
Add comments and small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
coandco committed Oct 2, 2024
1 parent e07bee2 commit 69165ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions docker/Dockerfile.client
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM debian:bookworm-slim

# Use ADD to avoid having to install curl
ADD --chmod=644 https://github.com/MisterTea/debian-et/raw/master/et.gpg /etc/apt/trusted.gpg.d/et.gpg

# Use a run cache to speed up rebuilding and avoid having to remove the cache when we're done
RUN --mount=type=cache,mode=0755,target=/var/lib/apt/lists,sharing=locked \
--mount=type=cache,mode=0755,target=/var/cache/apt,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
apt-get update -qq && \
apt-get install -y curl && \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && \
apt-get update -qq && \
apt-get install -y ca-certificates && \
echo "deb https://github.com/MisterTea/debian-et/raw/master/debian-source/ bookworm main" > /etc/apt/sources.list.d/et.list && \
curl -sSL https://github.com/MisterTea/debian-et/raw/master/et.gpg > /etc/apt/trusted.gpg.d/et.gpg && \
apt-get update -qq && \
apt-get install -y et

Expand Down
9 changes: 6 additions & 3 deletions docker/Dockerfile.server
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM debian:bookworm-slim

# Use ADD to avoid having to install curl
ADD --chmod=644 https://github.com/MisterTea/debian-et/raw/master/et.gpg /etc/apt/trusted.gpg.d/et.gpg

# Use a run cache to speed up rebuilding and avoid having to remove the cache when we're done
RUN --mount=type=cache,mode=0755,target=/var/lib/apt/lists,sharing=locked \
--mount=type=cache,mode=0755,target=/var/cache/apt,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
apt-get update -qq && \
apt-get install -y curl && \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && \
apt-get update -qq && \
apt-get install -y ca-certificates && \
echo "deb https://github.com/MisterTea/debian-et/raw/master/debian-source/ bookworm main" > /etc/apt/sources.list.d/et.list && \
curl -sSL https://github.com/MisterTea/debian-et/raw/master/et.gpg > /etc/apt/trusted.gpg.d/et.gpg && \
apt-get update -qq && \
apt-get install -y et

Expand Down

0 comments on commit 69165ca

Please sign in to comment.