-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (20 loc) · 910 Bytes
/
Dockerfile
File metadata and controls
21 lines (20 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM golang:stretch AS build
ENV KUSTOMIZE_VERSION=v0.0.0-20190430182652-0045d7b71604 \
GO111MODULE=on
COPY . /src
RUN go get sigs.k8s.io/kustomize@$KUSTOMIZE_VERSION && \
cd /go/pkg/mod/sigs.k8s.io/kustomize@$KUSTOMIZE_VERSION && \
go build -buildmode plugin -o /build/sopsdotenv.so /src/sopsdotenv/main.go && \
go build -buildmode plugin -o /build/sopsfiles.so /src/sopsfiles/main.go && \
go install
FROM debian:stretch
ENV KUBECTL_VERSION=v1.14.0
MAINTAINER tech@goabout.com
COPY --from=build /go/bin/kustomize /usr/local/bin/
COPY --from=build /build /root/.config/kustomize/plugin/kvSources
RUN apt-get update && \
apt-get install -y gnupg wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
wget https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \
chmod 755 /usr/local/bin/*