Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 720857c

Browse files
author
Daniel Widerin
committed
Add Dockerfile
1 parent 3b6366d commit 720857c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
LICENSE
3+
README.md

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM alpine:latest
2+
3+
MAINTAINER Daniel Widerin <[email protected]>
4+
5+
ENV OC_VERSION=v1.4.1 \
6+
OC_TAG_SHA=3f9807a \
7+
BUILD_DEPS='curl tar gzip'
8+
9+
RUN apk --no-cache add $BUILD_DEPS gettext && \
10+
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 && \
11+
tar xzvf /tmp/oc.tar.gz -C /tmp/ && \
12+
mv /tmp/openshift-origin-client-tools-${OC_VERSION}+${OC_TAG_SHA}-linux-64bit/oc /usr/bin/ && \
13+
rm -rf /tmp/oc.tar.gz /tmp/openshift-origin-client-tools-${OC_VERSION}+${OC_TAG_SHA}-linux-64bit && \
14+
apk del $BUILD_DEPS
15+
16+
CMD ["/bin/oc"]

0 commit comments

Comments
 (0)