-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.bookworm
68 lines (62 loc) · 1.73 KB
/
Dockerfile.bookworm
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM buildpack-deps:bookworm-curl
ADD common/retry /usr/local/bin
ADD common/dpkg-trim.conf /etc/dpkg/dpkg.cfg.d/01trim
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /usr/local/sbin/tini
ADD https://github.com/vishnubob/wait-for-it/raw/master/wait-for-it.sh /usr/local/bin/
ADD https://github.com/mikefarah/yq/releases/download/v4.30.6/yq_linux_amd64 /usr/local/bin/yq
RUN set -ex; \
chmod +x \
/usr/local/bin/retry \
/usr/local/bin/wait-for-it.sh \
/usr/local/bin/yq \
/usr/local/sbin/tini \
; \
useradd --system testuser; \
:
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
bats \
bzip2 \
gawk \
git \
jq \
krb5-user \
libsasl2-modules-gssapi-mit \
locales \
make \
netbase \
openssh-client \
parallel \
postgresql-client \
procps \
rsync \
shellcheck \
sudo \
unzip \
xz-utils \
zip \
; \
apt-get clean; \
rm -rf \
/usr/share/postgresql/*/man \
/var/lib/apt/lists/* \
/var/log/apt \
/var/log/dpkg.log \
/var/log/alternatives.log \
; \
:
RUN set -ex; \
sed -i '/^# en_US.UTF-8/s/^# //' /etc/locale.gen; \
grep ^en_US /etc/locale.gen; \
locale-gen; \
:
RUN set -ex; \
curl -LO https://github.com/tcnksm/ghr/releases/download/v0.15.0/ghr_v0.15.0_linux_amd64.tar.gz; \
tar --strip-component=1 -xvf ghr_v0.15.0_linux_amd64.tar.gz ghr_v0.15.0_linux_amd64/ghr; \
chmod +x ghr; \
mv ghr /usr/local/bin; \
rm -f ghr_*.tar.gz; \
ghr -version; \
:
ENTRYPOINT ["/usr/local/sbin/tini", "-gw", "--"]