-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (24 loc) · 966 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
FROM inquicker/docker-erlang-libsodium:0.3
COPY ./pkg /tmp
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
&& apt-get -y --no-install-recommends install \
locales \
libaio1 \
unixodbc \
erlang-odbc \
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& dpkg-reconfigure -f noninteractive locales \
&& mkdir -p /etc/oracle \
&& dpkg -i /tmp/oracle-instantclient11.2-basic_11.2.0.4.0-1_amd64.deb \
/tmp/oracle-instantclient11.2-odbc_11.2.0.4.0-1_amd64.deb \
/tmp/oracle-instantclient11.2-sqlplus_11.2.0.4.0-1_amd64.deb \
&& rm -rf /tmp/oracle-instantclient11.2*.deb
COPY ./etc /etc
ENV LANGUAGE="en_US.UTF-8" \
LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8" \
ORACLE_HOME="/usr/lib/oracle/11.2/client64" \
LD_LIBRARY_PATH="/usr/lib/oracle/11.2/client64/lib" \
TNS_ADMIN="/etc/oracle"
CMD ["bash"]