-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (26 loc) · 1018 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu:focal
LABEL os="ubuntu 8" \
container.description="ubuntu with tini" \
version="0.19.0" \
maintainer="devops <[email protected]>" \
imagename="tini" \
test.command=" tini --version | sed -e 's/.*version \(.*\) -.*/\1/'" \
test.command.verify="0.19.0"
ARG TINI_VERSION="v0.19.0"
ARG TINI_KEY="595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7"
ARG TINI_URL="https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-amd64"
ARG GPG_KEYS="595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7"
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg \
wget \
&& \
curl -fsSL ${TINI_URL} -o /bin/tini && \
curl -fsSL ${TINI_URL}.asc -o /bin/tini.asc && \
gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ${TINI_KEY} && \
gpg --batch --verify /bin/tini.asc /bin/tini && \
chmod +x /bin/tini
ENTRYPOINT ["/bin/tini", "--"]