-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ci
25 lines (20 loc) · 1014 Bytes
/
Dockerfile.ci
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
FROM node:16
RUN apt-get update && \
apt-get install -y vim && \
apt-get install -y nano && \
# install C compiler for native node deps
apt-get install -y software-properties-common build-essential && \
# install Oracle Instant Client (required by driver)
apt-get install -y libaio1 && \
# wget https://download.oracle.com/otn_software/linux/instantclient/19800/instantclient-basic-linux.x64-19.8.0.0.0dbru.zip && \
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
mkdir /opt/oracle && \
unzip instantclient-basiclite-linuxx64.zip -d /opt/oracle && \
echo /opt/oracle/$(ls -ltr /opt/oracle |grep ^d |head -n 1 | awk '{print $9}') > /etc/ld.so.conf.d/oracle-instantclient.conf && \
ldconfig && \
rm -f instantclient-basiclite-linuxx64.zip && apt-get -y autoremove && apt-get -y clean
WORKDIR /home/node/app
COPY . .
RUN mkdir -p docs && \
ls -al /home/node/app
CMD [ "npm", "run", "test-docker" ]