We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03a661c commit 4a40057Copy full SHA for 4a40057
images/kubexit/Dockerfile
@@ -1 +1,15 @@
1
-FROM miguelvr/kubexit:0.3.2-patch
+# This file has been adapted from https://github.com/cortexlabs/kubexit
2
+FROM golang:1.14.1-alpine3.11 AS builder
3
+RUN apk update && apk upgrade && \
4
+ apk add bash git openssh
5
+
6
+RUN mkdir /tmp/kubexit
7
+RUN git clone -b v0.1.0-cortex --depth 1 https://github.com/cortexlabs/kubexit.git /tmp/kubexit
8
9
+WORKDIR /tmp/kubexit
10
+RUN CGO_ENABLED=0 GOOS=linux go build -o kubexit ./cmd/kubexit
11
12
+FROM alpine:3.11
13
+RUN apk --no-cache add ca-certificates tzdata
14
+COPY --from=builder /tmp/kubexit/kubexit /bin/
15
+ENTRYPOINT ["kubexit"]
0 commit comments