-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 1.34 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
FROM mycroftai/docker-mycroft
ENV PULSE_SERVER unix:/var/run/pulse/native
COPY startup.sh /opt/mycroft
#RUN cd /opt/mycroft/skills/ && git clone https://github.com/JarbasSkills/skill-voip.git
# Build from src
RUN cd /root && git clone https://github.com/baresip/re.git \
&& git clone https://github.com/baresip/rem.git \
&& git clone https://github.com/baresip/baresip.git \
&& cd re && make && make install && ldconfig \
&& cd .. && cd rem && make && make install && ldconfig \
&& cd .. && cd baresip && make && make install
# libre-dev librem-dev baresip && cd /opt/mycroft/skills/skill-voip \
RUN mkdir /root/.mycroft && mkdir /root/.mycroft/identity \
&& mkdir /root/.baresip && echo "<sip:REDACTED@sipgate.co.uk>;auth_pass=REDACTED;answermode=auto" > /root/.baresip/accounts \
&& cd /opt/mycroft && git pull \
&& CI=true /opt/mycroft/./dev_setup.sh --allow-root -sm \
&& apt-get update \
&& apt-get -y install nano mplayer vlc ffmpeg \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& usermod -aG pulse-access root \
&& chmod +x /opt/mycroft/startup.sh
# && /opt/mycroft/bin/mycroft-msm install https://github.com/JarbasSkills/skill-voip
# && /opt/mycroft/bin/mycroft-pip install -r requirements.txt
COPY identity2.json /root/.mycroft/identity
COPY config /root/.baresip