-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerFile.Ubuntu
More file actions
61 lines (48 loc) · 1.85 KB
/
Copy pathDockerFile.Ubuntu
File metadata and controls
61 lines (48 loc) · 1.85 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
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM centos/nodejs-10-centos7:latest
ENV container docker
ADD https://rpm.nodesource.com/setup_15.x /root/
#RUN curl -sL https://rpm.nodesource.com/setup_8.x
RUN sudo bash /root/setup_15.x ;\
yum install -y nodejs ;\
yum groupinstall 'Development Tools' ;\
yum -y install gcc make ;\
yum -y install gcc-c++ ;\
yum -y install python3 ;\
yum -y install java-1.8.0-openjdk ;\
yum -y update
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
#RUN source $HOME/.bashrc && nvm install 12.14.1
RUN source $HOME/.bashrc && nvm install 15
#RUN source $HOME/.bashrc && nvm install-latest-npm
##RUN source $HOME/.bashrc && nvm install node-gyp
#RUN ln -s $HOME/.nvm/versions/node/v12.14.1/bin/node /usr/bin/node
#RUN ln -s $HOME/.nvm/versions/node/v12.14.1/bin/npm /usr/bin/npm
RUN node -v
RUN npm -v
# Create app directory
WORKDIR /usr/src/app
# 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 ./
COPY ibm-iaccess-1.1.0.14-1.0.ppc64le.rpm ./
RUN yum install -y ibm-iaccess-1.1.0.14-1.0.ppc64le.rpm ;\
yum install -y unixODBC unixODBC-devel
RUN npm_config_user=root npm --registry https://registry.npmjs.org/ install -g odbc
RUN npm --registry http://registry.npmjs.org/ install -g pug express body-parser
#RUN npm config set proxy null ;\
# npm config set https-proxy null ;\
# npm config set registry http://registry.npmjs.org/
# npm config set http-proxy http://registry.npmjs.org:80 ;\
# npm config set https-proxy http://registry.npmjs.org:443
#RUN npm_config_user=root npm install -g odbc
#RUN npm install -g express
#RUN npm install -g body-parser
#RUN npm install express pug odbc
#RUN npm install body-parser
# Bundle app source
COPY . .
EXPOSE 8080
CMD [ "node", "index.js" ]
#CMD [ "node", "database.js" ]
#CMD ["/usr/sbin/init"]