-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
23 lines (15 loc) · 627 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
FROM node:10.13
RUN apt-get update && apt-get install -y libaio1 unzip
RUN mkdir -p /usr/src/staff-fee-privilege-api /opt/oracle
WORKDIR /usr/src/staff-fee-privilege-api
COPY . /usr/src/staff-fee-privilege-api
RUN yarn
RUN unzip bin/instantclient-basiclite-linux.x64-12.2.0.1.0.zip -d /opt/oracle
RUN cd /opt/oracle/instantclient_12_2 \
&& ln -s libclntsh.so.12.1 libclntsh.so \
&& ln -s libocci.so.12.1 libocci.so
RUN echo /opt/oracle/instantclient_12_2 > /etc/ld.so.conf.d/oracle-instantclient.conf \
&& ldconfig
RUN ./node_modules/.bin/gulp test
USER nobody:nogroup
ENTRYPOINT ["./node_modules/.bin/gulp", "run"]