Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mycroft #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@ ARG mimic_pkg=mimic

ARG host_locale=en_US.UTF-8

ARG mycroft_core_tag=release/v20.8.1

ENV TERM linux
ENV DEBIAN_FRONTEND noninteractive

# Install Server Dependencies for Mycroft
RUN set -x \
&& apt-get update \
&& apt-get update \
&& apt-get -y install \
git \
locales \
procps \
python3 \
python3-pip \
python3-dev \
sudo \
build-essential \
cargo \
bison \
curl \
flac \
Expand All @@ -41,13 +46,14 @@ RUN set -x \
python3-setuptools \
swig \
zlib1g-dev \
&& pip3 install future msm \
# Checkout Mycroft
&& git clone https://github.com/MycroftAI/mycroft-core.git /opt/mycroft \
--branch=release/v20.2.4 \
# Cryptography
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y \
&& python3 -m pip install cryptography --no-binary cryptography \
# Checkout Mycroft
&& git clone https://github.com/MycroftAI/mycroft-core.git /opt/mycroft --branch=$mycroft_core_tag \
&& cd /opt/mycroft \
&& mkdir /opt/mycroft/skills \
&& pip3 install \
&& python3 -m pip install --upgrade \
-r /opt/mycroft/requirements/requirements.txt

RUN curl https://forslund.github.io/mycroft-desktop-repo/mycroft-desktop.gpg.key \
Expand All @@ -62,7 +68,7 @@ RUN curl https://forslund.github.io/mycroft-desktop-repo/mycroft-desktop.gpg.key

# Set the locale
RUN sed -i -e 's/# \('"$host_locale"' .*\)/\1/' /etc/locale.gen \
&& dpkg-reconfigure --frontend=noninteractive locales \
&& dpkg-reconfigure --frontend=noninteractive locales \
&& update-locale LANG=$host_locale

WORKDIR /opt/mycroft
Expand Down