-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 848 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
FROM node:10.13
# Copy folder to workspace
WORKDIR /usr/src/game-curator-api
COPY . /usr/src/game-curator-api
# The following lines are commented out by default since not all APIs require
# Oracle Instant Client. Uncomment the codes if you needed.
# Install Oracle Instant Client
RUN apt-get update && apt-get install -y libaio1 unzip
RUN mkdir -p /opt/oracle
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
# Install dependent packages via yarn
RUN yarn
# Run unit tests
RUN ./node_modules/.bin/gulp test
USER nobody:nogroup
# Run application
ENTRYPOINT ["./node_modules/.bin/gulp", "run"]