-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (22 loc) · 1.25 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
30
31
32
33
34
35
36
FROM debian:buster-slim as builder
LABEL maintainer="paul.bargewell@opusvl.com"
COPY ${PWD}/make.sh /
COPY ${PWD}/entrypoint.sh /entrypoint.sh
RUN chmod +x /make.sh && /make.sh
FROM debian:buster-slim as final
COPY ${PWD}/install.sh /install.sh
RUN chmod +x /install.sh && /install.sh
COPY --from=builder --chown=asterisk:asterisk /usr/lib/libasterisk* /usr/lib/
COPY --from=builder --chown=asterisk:asterisk /usr/lib/asterisk/ /usr/lib/asterisk/
COPY --from=builder --chown=asterisk:asterisk /var/spool/asterisk/ /var/spool/asterisk/
COPY --from=builder --chown=asterisk:asterisk /var/log/asterisk/ /var/log/asterisk/
COPY --from=builder --chown=asterisk:asterisk /usr/sbin/asterisk /usr/sbin/asterisk
COPY --from=builder --chown=asterisk:asterisk /etc/asterisk/ /etc/asterisk/
COPY --from=builder --chown=asterisk:asterisk /etc/init.d/asterisk /etc/init.d/
COPY --from=builder --chown=asterisk:asterisk /var/lib/asterisk/ /var/lib/asterisk/
COPY --from=builder /entrypoint.sh /entrypoint.sh
RUN mkdir /var/run/asterisk
RUN chmod +x /entrypoint.sh
EXPOSE 5060/udp 5060/tcp 8088/tcp 5038/tcp
#VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk /etc/asterisk
ENTRYPOINT [ "/entrypoint.sh" ]