-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (28 loc) · 857 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
FROM balenalib/armv7hf-debian:buster
RUN [ "cross-build-start" ]
# Install packages
RUN apt-get -qq update
RUN apt-get -qq install --no-install-recommends -y \
alsa-utils \
python3 \
python3-pip
# Upgrade pip and setuptools
RUN pip3 install -q pip setuptools --upgrade
# Install google-assistant-sdk
RUN pip3 install -q --upgrade google-assistant-library \
&& pip3 install -q --upgrade google-auth-oauthlib[tool]
# cleanup
RUN apt-get -qq remove -y --purge python3-pip \
&& apt-get -qq autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# Copy data
COPY asoundrc.config /root/.asoundrc
COPY GA.sh /root
RUN chmod +x /root/GA.sh
COPY installCred.sh /root
RUN chmod +x /root/installCred.sh
# Run google-assistant
CMD /root/GA.sh
# Persistent directory
VOLUME /root/.config/google-oauthlib-tool
RUN [ "cross-build-end" ]