-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 946 Bytes
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 946 Bytes
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
FROM node:11.3
WORKDIR /usr/src/app
# update system
RUN apt-get update
# install python
RUN apt-get install -y software-properties-common
RUN python --version
RUN apt-get install -y python-dev
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN pip install -U pip
# install python modules
RUN pip install deepdiff --user
RUN pip install geopy --user
RUN pip install deepdiff --user
RUN pip install attrdict --user
RUN pip install requests --user
RUN pip install psutil --user
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
# add tess-grafana script configuration
#ADD config.json ./scripts/tess_grafana/
# run server
RUN npm install
COPY . .
CMD [ "npm", "start" ]
# port
EXPOSE 8888
# old recipe
#RUN npm install mongoose
#RUN npm install body-parser
##CMD ["node", "server.js"]
#EXPOSE 8888