forked from markuslindenberg/docker-asterisk-debbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (25 loc) · 1.02 KB
/
Dockerfile
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
FROM debian:jessie
MAINTAINER Markus Lindenberg <[email protected]>
# Make Debconf less annoying
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
RUN apt-get update
RUN apt-get -y install build-essential pkg-config sudo curl ruby ruby-dev binutils-dev \
libsrtp0-dev libssl-dev libspeex-dev libspeexdsp-dev \
libgsm1-dev \
subversion flex libxml2-dev libxslt1-dev libncurses5-dev libcurl4-openssl-dev libsqlite3-dev uuid-dev libjansson-dev \
libboost-iostreams1.55.0 libclass-accessor-perl libcwidget3 libio-string-perl libparse-debianchangelog-perl libsigc++-2.0-0c2a libsub-name-perl \
libxapian22 unixodbc unixodbc-dev libiksemel-dev libsnmp-dev \
&& apt-get clean
# Install FPM (Effing Package Management)
RUN gem install fpm
# Create users
RUN adduser --system --home /usr/src build
RUN mkdir -p /usr/src/build /usr/src/packages
RUN chown -R build: /usr/src
# Add build script
ADD build.sh /usr/src/build.sh
ADD contrib /usr/src/contrib
WORKDIR /usr/src
CMD ["/usr/src/build.sh"]