-
-
Notifications
You must be signed in to change notification settings - Fork 496
/
Dockerfile
68 lines (48 loc) · 1.88 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM golang:1.22-alpine@sha256:0d3653dd6f35159ec6e3d10263a42372f6f194c3dea0b35235d72aabde86486e AS build-env
ENV CGO_ENABLED 0
RUN apk add --no-cache make git ncurses
# Build gopass
WORKDIR /home/runner/work/gopass/gopass
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
ARG golags_arg=""
ENV GOFLAGS=$goflags_arg
RUN make clean
RUN make gopass
# Build gopass-jsonapi
WORKDIR /home/runner/work/gopass
RUN git clone https://github.com/gopasspw/gopass-jsonapi.git
WORKDIR /home/runner/work/gopass/gopass-jsonapi
RUN go mod download
RUN make clean
RUN make gopass-jsonapi
# Build gopass-hibp
WORKDIR /home/runner/work/gopass
RUN git clone https://github.com/gopasspw/gopass-hibp.git
WORKDIR /home/runner/work/gopass/gopass-hibp
RUN go mod download
RUN make clean
RUN make gopass-hibp
# Build gopass-summon-provider
WORKDIR /home/runner/work/gopass
RUN git clone https://github.com/gopasspw/gopass-summon-provider.git
WORKDIR /home/runner/work/gopass/gopass-summon-provider
RUN go mod download
RUN make clean
RUN make gopass-summon-provider
# Build git-credential-gopass
WORKDIR /home/runner/work/gopass
RUN git clone https://github.com/gopasspw/git-credential-gopass.git
WORKDIR /home/runner/work/gopass/git-credential-gopass
RUN go mod download
RUN make clean
RUN make git-credential-gopass
FROM alpine@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
RUN apk add --no-cache ca-certificates git gnupg
COPY --from=build-env /home/runner/work/gopass/gopass/gopass /usr/local/bin/
COPY --from=build-env /home/runner/work/gopass/gopass-jsonapi/gopass-jsonapi /usr/local/bin/
COPY --from=build-env /home/runner/work/gopass/gopass-hibp/gopass-hibp /usr/local/bin/
COPY --from=build-env /home/runner/work/gopass/gopass-summon-provider/gopass-summon-provider /usr/local/bin/
COPY --from=build-env /home/runner/work/gopass/git-credential-gopass/git-credential-gopass /usr/local/bin/