aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Dockerfile.base19
1 files changed, 3 insertions, 16 deletions
diff --git a/Dockerfile.base b/Dockerfile.base
index 4fe8add..a2e8ae4 100644
--- a/Dockerfile.base
+++ b/Dockerfile.base
@@ -1,27 +1,14 @@
-FROM debian:buster-slim
+FROM debian:bullseye-slim
SHELL ["/bin/bash", "-c"]
RUN apt update -yq && \
DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends \
build-essential \
- ca-certificates gnupg wget \
- sudo \
+ ca-certificates wget \
+ gosu sudo \
nano vim
-# Install gosu (better sudo, basically).
-ARG GOSU_VERSION=1.12
-RUN DPKG_ARCH="$( dpkg --print-architecture | awk -F- '{ print $NF }' )" && \
- wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$DPKG_ARCH" && \
- wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$DPKG_ARCH.asc" && \
- export GNUPGHOME="$( mktemp -d )" && \
- gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && \
- gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && \
- gpgconf --kill all && \
- rm -rf -- "$GNUPGHOME" /usr/local/bin/gosu.asc && \
- chmod +x /usr/local/bin/gosu && \
- gosu nobody true
-
ARG DEFAULT_UID=999
ARG DEFAULT_GID="$DEFAULT_UID"