forked from martindsouza/docker-oracle-sqlcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 684 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 684 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
# Original source from https://github.com/lucassampsouza/ords_apex
FROM openjdk:8-jre-alpine
MAINTAINER Martin DSouza <martin@talkapex.com>
ENV TZ="GMT" \
SQLCL_DIR="/usr/local/sqlcl" \
SQLCL_BIN_NAME="sqlcl" \
PATH="/usr/local/sqlcl/bin:${PATH}"
COPY ["sqlcl-*.zip", "scripts/*", "/tmp/"]
# This is a dummy volume to reference user's custom scripts
VOLUME ["/sqlcl"]
WORKDIR "/sqlcl"
RUN chmod +x /tmp/install-sqlcl.sh && \
apk update && \
apk upgrade && \
# bash is required by sqlcl
apk add bash && \
# for tput which is required by sqlcl
apk add ncurses && \
/tmp/install-sqlcl.sh
ENTRYPOINT ["sqlcl"]
CMD ["/nolog"]
# debug
# ENTRYPOINT [ "/bin/bash" ]