File tree Expand file tree Collapse file tree 4 files changed +23
-23
lines changed Expand file tree Collapse file tree 4 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ dockers:
8383 - image_templates :
8484 - ' goodwithtech/dockertags:{{ .Tag }}-amd64'
8585 - ' ghcr.io/goodwithtech/dockertags:{{ .Tag }}-amd64'
86- dockerfile : Dockerfile
86+ dockerfile : Dockerfile.releaser
8787 build_flag_templates :
8888 - " --pull"
8989 - " --label=org.opencontainers.image.created={{.Date}}"
@@ -95,7 +95,7 @@ dockers:
9595 - image_templates :
9696 - ' goodwithtech/dockertags:{{ .Tag }}-arm64'
9797 - ' ghcr.io/goodwithtech/dockertags:{{ .Tag }}-arm64'
98- dockerfile : Dockerfile
98+ dockerfile : Dockerfile.releaser
9999 build_flag_templates :
100100 - " --pull"
101101 - " --label=org.opencontainers.image.created={{.Date}}"
Original file line number Diff line number Diff line change 1- FROM alpine:3.13
2- COPY dockertags /dockertags
3- ENTRYPOINT ["/dockertags" ]
1+ FROM golang:1.13-alpine AS builder
2+ COPY go.mod go.sum /app/
3+ WORKDIR /app/
4+ RUN apk --no-cache add git
5+ RUN go mod download
6+ COPY . /app/
7+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /dockertags cmd/dockertags/main.go
8+
9+ FROM alpine:3.11
10+ COPY --from=builder /dockertags /usr/local/bin/dockertags
11+ RUN chmod +x /usr/local/bin/dockertags
12+ RUN apk --no-cache add ca-certificates shadow
13+
14+ # for use docker daemon via mounted /var/run/docker.sock
15+ RUN addgroup -S docker && adduser -S -G docker dockertags
16+ USER dockertags
17+
18+ ENTRYPOINT ["dockertags" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ FROM alpine:3.13
2+ COPY dockertags /dockertags
3+ ENTRYPOINT ["/dockertags"]
You can’t perform that action at this time.
0 commit comments