-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathDockerfile.server
19 lines (15 loc) · 954 Bytes
/
Dockerfile.server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 && \
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 && \
apt-get update -qq && \
apt-get install -y et openssh-server
COPY --chmod=755 container-entrypoint /bin/container-entrypoint
ENTRYPOINT ["/bin/container-entrypoint", "server"]