File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.19.2 -alpine3.16
1+ FROM golang:1.19-alpine3.16
22
33ENV USER root
44
55RUN set -x && \
6- apk --no-cache add git gcc make libc-dev && \
7- git clone https://github.com/cloudflare/cfssl.git /go/src/github.com/cloudflare/cfssl && \
8- cd /go/src/github.com/cloudflare/cfssl && \
9- make && \
10- git clone https://github.com/cloudflare/cfssl_trust.git /go/src/github.com/cloudflare/cfssl_trust && \
6+ apk --no-cache add gcc libc-dev && \
7+ go install github.com/cloudflare/cfssl/cmd/
[email protected] && \
8+ go install github.com/cloudflare/cfssl_trust/...@latest && \
119 echo "Build complete."
1210
1311FROM ruby:3.0-alpine3.16
14- COPY --from=0 /go/src/github.com/cloudflare/cfssl_trust /etc/cfssl
15- COPY --from=0 /go/src/github.com/cloudflare/cfssl/bin/ /usr/bin
12+ RUN mkdir /etc/cfssl
13+ COPY --from=0 /go/pkg/mod/github.com/cloudflare/cfssl_trust@*/*.crt* /etc/cfssl/
14+ COPY --from=0 /go/bin/ /usr/bin/
1615RUN gem install slop
1716COPY . /etc/k8s
1817
Original file line number Diff line number Diff line change 1+ NAME =puppet/kubetool
2+
3+ all : build
4+
5+ .phony : build
6+
7+ build :
8+ grep " ^FROM" Dockerfile | awk ' { print $$2 }' | uniq | xargs -P2 -n1 docker pull
9+ docker build -t $(NAME ) .
You can’t perform that action at this time.
0 commit comments