-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
24 lines (22 loc) · 835 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
FROM alpine as build
RUN apk update \
&& apk add alpine-sdk vim swig \
&& ln `which swig` `which swig`3.0 \
&& mkdir -p /var/cache/distfiles \
&& chmod a+w /var/cache/distfiles \
&& adduser -D freeswitch \
&& addgroup freeswitch abuild
USER freeswitch
WORKDIR /home/freeswitch
RUN abuild-keygen -a -i \
&& git clone https://github.com/lazedo/freeswitch-docker-alpine.git \
&& cd freeswitch-docker-alpine \
&& abuild checksum \
&& abuild -r
FROM alpine as freeswitch
COPY --from=build /home/freeswitch/packages/freeswitch/x86_64/* /apks/x86_64/
RUN echo -e "/apks\n$(cat /etc/apk/repositories)" > /etc/apk/repositories \
&& apk add --update --allow-untrusted \
bash curl wget iproute2 \
freeswitch=1.9.0-r0 freeswitch-flite=1.9.0-r0
CMD ["freeswitch", "-nonat"]