-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile.build
49 lines (43 loc) · 1.15 KB
/
Dockerfile.build
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
# Build Debian package using dh-virtualenv
#
# To create a package for Stretch in `dist/`, call:
#
# ./build.sh debian:stretch
# Build arguments, as provided by 'build.sh'
ARG DIST_ID="debian"
ARG CODENAME="bullseye"
ARG PKGNAME
## Start package builder image for the chosen platform
FROM ${DIST_ID}:${CODENAME} AS dpkg-build
# Pass build args into image scope
ARG CODENAME
ARG PKGNAME
ARG VERSION
# Install build tools and package build deps including nodejs
RUN env LANG=C apt-get update -qq -o Acquire::Languages=none \
&& env LANG=C DEBIAN_FRONTEND=noninteractive apt-get install \
-yqq --no-install-recommends -o Dpkg::Options::=--force-unsafe-io \
\
apt-transport-https \
apt-utils \
build-essential \
debhelper \
devscripts \
equivs \
gnupg2 \
gzip \
lintian \
lsb-release \
python3-all \
python3-dev \
python3-pip \
python3-pkg-resources \
python3-setuptools \
dh-python \
tar \
libxml2-dev
RUN pip3 install pytest
RUN pip3 install lxml
WORKDIR /dpkg-build
COPY ./ ./
RUN dpkg-buildpackage -tc