-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (25 loc) · 864 Bytes
/
Dockerfile
File metadata and controls
28 lines (25 loc) · 864 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
FROM alpine:3.6 as helmbuild
RUN apk add --update --no-cache \
ca-certificates \
curl \
git \
gzip \
tar
ARG VERSION=v3.3.1
ARG FILENAME=helm-${VERSION}-linux-amd64.tar.gz
WORKDIR /
RUN curl -L "https://get.helm.sh/${FILENAME}" | tar zxv -C /tmp
FROM golang:1.17 as gobuild
WORKDIR /boondogglefiles
COPY --from=helmbuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=vendor -o /boondoggle
# The image we keep
FROM google/cloud-sdk:alpine
RUN gcloud components install kubectl
RUN apk add --update --no-cache git bash curl
COPY --from=helmbuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=helmbuild /tmp/linux-amd64/helm /bin/helm
COPY --from=gobuild /boondoggle /bin/boondoggle
RUN helm plugin install https://github.com/futuresimple/helm-secrets
CMD ["boondoggle", "-h"]