-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathDockerfile.slim
More file actions
32 lines (24 loc) · 823 Bytes
/
Dockerfile.slim
File metadata and controls
32 lines (24 loc) · 823 Bytes
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
# INSTALL PYTHON IMAGE
FROM python:3.6-slim
MAINTAINER Peisheng Jiang <egojason@gmail.com>
# INSTALL TOOLS
RUN apt-get update \
# gcc required for cx_Oracle
&& apt-get -y install gcc \
&& apt-get -y install unzip \
&& apt-get -y install libaio-dev \
&& mkdir -p /opt/data/api
ADD ./oracle-instantclient/ /opt/data
ADD ./install-instantclient.sh /opt/data
ADD ./requirements.txt /opt/data
WORKDIR /opt/data
ENV ORACLE_HOME=/opt/oracle/instantclient
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME
ENV OCI_HOME=/opt/oracle/instantclient
ENV OCI_LIB_DIR=/opt/oracle/instantclient
ENV OCI_INCLUDE_DIR=/opt/oracle/instantclient/sdk/include
# INSTALL INSTANTCLIENT AND DEPENDENCIES
RUN ./install-instantclient.sh \
&& pip install -r requirements.txt
EXPOSE 5000
CMD ["python","./api/server.py"]