-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.buster
59 lines (52 loc) · 1.38 KB
/
Dockerfile.buster
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
FROM dalibo/buildpack:buster AS downloader
RUN set -ex; \
cd /tmp; \
curl --location --output nfpm.tar.gz https://github.com/goreleaser/nfpm/releases/download/v2.32.0/nfpm_2.32.0_Linux_x86_64.tar.gz ; \
tar --extract --file /tmp/nfpm.tar.gz nfpm; \
chmod +x ./nfpm; \
./nfpm --version; \
:
FROM dalibo/buildpack:buster
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
build-essential \
lsb-release \
python2.7 \
python-pip \
python3.5 \
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; \
pip2 --no-cache-dir install --upgrade --ignore-installed pip; \
hash -r pip2; \
pip2 --no-cache-dir install --upgrade setuptools wheel; \
:
RUN set -ex; \
pip3 --no-cache-dir install --ignore-installed pip setuptools; \
hash -r pip3; \
pip3 --no-cache-dir install --upgrade \
pep440deb \
"virtualenv<20" \
virtualenv-tools \
; \
:
COPY --from=downloader /tmp/nfpm /usr/local/bin/nfpm
RUN set -ex; \
nfpm --version; \
gem install --no-ri --no-rdoc fpm; \
gem cleanup; \
fpm --version; \
: