-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-ws
More file actions
48 lines (28 loc) · 1.13 KB
/
Dockerfile-ws
File metadata and controls
48 lines (28 loc) · 1.13 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 ubuntu:16.04
ARG http_proxy
ARG https_proxy
ENV http_proxy ${http_proxy}
ENV https_proxy ${https_proxy}
RUN echo $https_proxy
RUN echo $http_proxy
# Uncomment the two lines below if you wish to use an Ubuntu mirror repository
# that is closer to you (and hence faster). The 'sources.list' file inside the
# 'tools/docker/' folder is set to use one of Ubuntu's official mirror in Taiwan.
# You should update this file based on your own location. For a list of official
# Ubuntu mirror repositories, check out: https://launchpad.net/ubuntu/+archivemirrors
COPY sources.list /etc/apt
RUN rm /var/lib/apt/lists/* -vf
RUN apt-get clean && apt-get update
#RUN apt install -y npm nodejs nodejs-dev nodejs-legacy
RUN apt install -y npm nodejs-legacy
RUN apt install -y libzmq3-dev libkrb5-dev
COPY face-access-control /opt/face-access-control/
WORKDIR /opt/face-access-control/webservice/server
RUN npm config set proxy $http_proxy
RUN npm config set https-proxy $https_proxy
RUN npm install
WORKDIR /opt/face-access-control/webservice/front-end
RUN npm install
WORKDIR /opt/face-access-control/webservice/
ENV http_proxy ""
ENV https_proxy ""