-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.bookworm
48 lines (42 loc) · 1.09 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
FROM dalibo/buildpack:bookworm AS downloader
RUN set -ex; \
cd /tmp; \
curl --location --output nfpm.tar.gz https://github.com/goreleaser/nfpm/releases/download/v2.24.0/nfpm_2.24.0_Linux_x86_64.tar.gz ; \
tar --extract --file /tmp/nfpm.tar.gz nfpm; \
chmod +x ./nfpm; \
./nfpm --version; \
:
FROM dalibo/buildpack:bookworm
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
build-essential \
lsb-release \
python3-pip \
ruby \
ruby-dev \
rubygems \
; \
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; \
pip3 --no-cache-dir install --break-system-packages --upgrade \
pep440deb \
"virtualenv<20" \
virtualenv-tools \
; \
:
COPY --from=downloader /tmp/nfpm /usr/local/bin/nfpm
RUN set -ex; \
nfpm --version; \
gem install --no-document fpm; \
gem cleanup; \
fpm --version; \
: