removes un-necessary containers and fixes dockerfile.
This commit is contained in:
parent
64019b5efe
commit
e889cd7dc8
@ -8,7 +8,7 @@ RUN apk --no-cache add git upx && \\
|
|||||||
go get -d -v /go/src/github.com/m13253/dns-over-https/doh-server/... && \\
|
go get -d -v /go/src/github.com/m13253/dns-over-https/doh-server/... && \\
|
||||||
go install -v /go/src/github.com/m13253/dns-over-https/doh-server/... && \\
|
go install -v /go/src/github.com/m13253/dns-over-https/doh-server/... && \\
|
||||||
go build -ldflags="-s -w" -o /go/${app_name} /go/src/github.com/m13253/dns-over-https/doh-server/ && \\
|
go build -ldflags="-s -w" -o /go/${app_name} /go/src/github.com/m13253/dns-over-https/doh-server/ && \\
|
||||||
upx --brute /go/${app_name} && \\
|
upx --brute /go/${app_name}
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk add --no-cache ca-certificates && \\
|
RUN apk add --no-cache ca-certificates && \\
|
||||||
@ -48,11 +48,6 @@ apiVersion: v1
|
|||||||
kind: Pod
|
kind: Pod
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: golang
|
|
||||||
image: docker.io/golang:latest
|
|
||||||
tty: true
|
|
||||||
command:
|
|
||||||
- cat
|
|
||||||
- name: kaniko
|
- name: kaniko
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
|
Reference in New Issue
Block a user