-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.jammy
More file actions
47 lines (43 loc) · 1.3 KB
/
Dockerfile.jammy
File metadata and controls
47 lines (43 loc) · 1.3 KB
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
FROM buildpack-deps:jammy-curl
ADD common/retry /usr/local/bin
ADD common/dpkg-trim.conf /etc/dpkg/dpkg.cfg.d/01trim
ADD https://github.com/vishnubob/wait-for-it/raw/master/wait-for-it.sh /usr/local/bin/
RUN set -ex; \
chmod +x \
/usr/local/bin/retry \
/usr/local/bin/wait-for-it.sh \
; \
useradd --system testuser; \
:
RUN set -ex; \
curl -o /etc/apt/trusted.gpg.d/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc ; \
echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list; \
mkdir -p /etc/postgresql-common/createcluster.d/; \
echo "create_main_cluster = false" > /etc/postgresql-common/createcluster.d/no-main-cluster.conf; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
bats \
gawk \
git \
jq \
locales \
netbase \
openssh-client \
postgresql-client \
procps \
rsync \
shellcheck \
sudo \
tini \
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 \
; \
:
ENTRYPOINT ["/usr/bin/tini", "-gw", "--"]