-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (28 loc) · 1023 Bytes
/
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
# start by pulling the ubuntu image
FROM ubuntu:latest
RUN apt-get install \
apt-transport-https
RUN apt-get update -y && apt-get install libxml2 -y
RUN apt-get install libnuma-dev -y
COPY setup.sh .
RUN chmod +x ./setup.sh
RUN ./setup.sh
# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
COPY . /app
ENV DB2HOME=/root/go/src/github.com/ibmdb/clidriver
ENV IBM_DB_HOME=/root/go/src/github.com/ibmdb/clidriver
ENV CGO_CFLAGS=-I/root/go/src/github.com/ibmdb/clidriver/include
ENV CGO_LDFLAGS=-L/root/go/src/github.com/ibmdb/clidriver/lib
ENV LD_LIBRARY_PATH=/root/go/src/github.com/ibmdb/clidriver/lib:$LD_LIBRARY_PATH
ENV PATH=/root/nodejs/bin:$PATH
RUN echo PATH
RUN npm install ibm_db
RUN go run connect.go > go-result.txt
RUN node connect.js > node-result.txt
#RUN python3 connect.py > python-result.txt
#RUN python3 emailtest.py
ENTRYPOINT [ "python" ]
CMD [ "app.py" ]