-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.alpine
32 lines (26 loc) · 960 Bytes
/
Dockerfile.alpine
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
# This is an example docker file on how to install the package successfully
# You can either build a custom image using this file or inject the
# dependancies using the following one line command on a running instance:
# Find the container name using docker ps and insert where <container-name> is
# docker exec -it --user=root <container-name> apk add python g++ build-base cairo-dev jpeg-dev pango-dev musl-dev giflib-dev pixman-dev pangomm-dev libjpeg-turbo-dev freetype-dev
# Pull the latest
FROM nodered/node-red
# Change the user to root to install packages
USER root
# Install required alpine packages
RUN apk add python \
g++ \
build-base \
cairo-dev \
jpeg-dev \
pango-dev \
musl-dev \
giflib-dev \
pixman-dev \
pangomm-dev \
libjpeg-turbo-dev \
freetype-dev
# Finally install the face recognition package
RUN npm i node-red-contrib-face-recognition
# Change the user back to node-red
USER node-red