-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (44 loc) · 1.12 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:19.10
ENV NODEJS_VERSION 14
# Create app directory
WORKDIR /usr/src/app
# Install system dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
python3-pip \
python3-dev \
python3-numpy \
wget \
# nasm \
cmake \
dcraw \
git \
pkg-config \
# libpng-dev \
# dh-autoreconf \
libimage-exiftool-perl \
unoconv \
ffmpeg \
# libavformat-dev \
# libopenblas-dev \
# libx11-dev \
imagemagick \
nano \
&& apt-get clean \
&& rm -rf /tmp/* /var/tmp/*
# Install face recognition
RUN pip3 install wheel sklearn face_recognition
# Install nodejs
RUN wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN wget -qO- https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | bash -
RUN apt-get install -y nodejs yarn && rm -rf /var/lib/apt/lists/*
# Install app dependencies
COPY ./package.json ./
RUN yarn
COPY conf/policy.xml /etc/ImageMagick-6/
# Bundle app source
COPY . .
EXPOSE 8181
CMD [ "node", "index.js" ]