forked from eallovon/xivo-agid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (34 loc) · 788 Bytes
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
## Image to build from sources
FROM debian:latest
MAINTAINER XiVO Team "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
# Add dependencies
RUN apt-get -qq update
RUN apt-get -qq -y install \
git \
apt-utils \
python-pip \
python-dev \
libpq-dev \
libyaml-dev \
libldap2-dev \
libsasl2-dev
# Install xivo-agid
WORKDIR /usr/src
ADD . /usr/src/agid
WORKDIR agid
RUN pip install -r requirements.txt
RUN python setup.py install
# Configure environment
RUN adduser --disabled-password --gecos '' asterisk
RUN touch /var/log/xivo-agid.log
RUN mkdir -p /etc/xivo-agid
RUN mkdir /var/lib/xivo-agid
RUN cp -a etc/xivo-agid/* /etc/xivo-agid/
WORKDIR /root
# Clean
RUN apt-get clean
RUN rm -rf /usr/src/agid
EXPOSE 4573
CMD xivo-agid -f -d