forked from openSUSE/snapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
48 lines (44 loc) · 1.11 KB
/
Dockerfile.ubuntu
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
# Ubuntu and Debian images are similar
# so use a parametrized Dockerfile. See
# https://docs.docker.com/engine/reference/builder/#from
ARG BUILD_FLAVOR
ARG DOCKER_TAG
FROM ${BUILD_FLAVOR}:${DOCKER_TAG}
# Pre-FROM ARG and Post-FROM ARG have to be declared separately:
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interatc
ARG BUILD_FLAVOR
# see https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/run
RUN apt-get update && \
case "${BUILD_FLAVOR}" in \
debian) MORE_PACKAGES="locales-all";; \
ubuntu) MORE_PACKAGES="language-pack-de language-pack-en";; \
esac; \
apt-get install -y --no-install-recommends \
${MORE_PACKAGES} \
acl-dev \
autoconf \
automake \
build-essential \
dbus \
debhelper \
devscripts \
docbook-xsl \
fakeroot \
g++ \
gettext \
libboost-dev \
libboost-system-dev \
libboost-test-dev \
libboost-thread-dev \
libdbus-1-dev \
libjson-c-dev \
libmount-dev \
libpam-dev \
libtool \
libxml2-dev \
libz-dev \
ruby-dbus \
xsltproc
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app