-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (37 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
50 lines (37 loc) · 1.46 KB
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
40
41
42
43
44
45
46
47
48
FROM 1646552/opencv-python-pi4:latest
RUN apt-get update && apt-get install curl gnupg ca-certificates git gcc -y
# install tflite
RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install --no-cache-dir tflite-runtime>=2.7.0
# RUN pip3 install --no-cache-dir tflite-support>=0.3.1
# install pycamera
ENV READTHEDOCS True
RUN pip install --no-cache-dir "picamera[array]"
RUN apt-get install cmake build-essential -y
# install python dependancies
RUN pip install --no-cache-dir wheel dlib
RUN pip install --no-cache-dir falcon requests imutils
# install nodejs and magicMirror
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt install -y nodejs
RUN git clone https://github.com/MichMich/MagicMirror
WORKDIR /MagicMirror
RUN npm install --only=prod --omit=dev
# install magicModule
WORKDIR /MagicMirror/modules
RUN git clone https://github.com/n1klasD/MagicModule
# install third party modules
RUN git clone https://github.com/lavolp3/MMM-AVStock
WORKDIR /MagicMirror/modules/MMM-AVStock
RUN npm install --only=prod --omit=dev
# install MagicController
WORKDIR /
RUN mkdir MagicController
# COPY . /MagicController
COPY setup/entrypoint.sh /
# WORKDIR /MagicController/setup
RUN chmod a+x entrypoint.sh
# execute starting script
ENTRYPOINT ["/entrypoint.sh"]