forked from saily/openshift-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 817 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM frolvlad/alpine-glibc:latest
MAINTAINER René Groß <rene.gross@create.at>
ENV OC_VERSION=v3.9.0 \
OC_TAG_SHA=191fece \
BUILD_DEPS='tar gzip' \
RUN_DEPS='curl ca-certificates gettext zsh' \
SHELL=/bin/zsh
RUN apk --no-cache add $BUILD_DEPS $RUN_DEPS && \
curl -sLo /tmp/oc.tar.gz https://github.com/openshift/origin/releases/download/${OC_VERSION}/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit.tar.gz && \
tar xzvf /tmp/oc.tar.gz -C /tmp/ && \
mv /tmp/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit/oc /usr/local/bin/ && \
rm -rf /tmp/oc.tar.gz /tmp/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit && \
sed -i -e "s/bin\/ash/bin\/zsh/" /etc/passwd && \
apk del $BUILD_DEPS
CMD ["/usr/local/bin/oc"]