mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
This is required for the latest Azure SDK, and comes with general improvements for certain CPU types. Includes a change of `%w` -> `%v` for `t.Errorf` due to dropped support for wrapping. Signed-off-by: Hidde Beydals <hello@hidde.co>
18 lines
342 B
Docker
18 lines
342 B
Docker
FROM golang:1.18-alpine3.16 AS builder
|
|
|
|
RUN apk --no-cache add make
|
|
|
|
COPY . /go/src/go.mozilla.org/sops
|
|
WORKDIR /go/src/go.mozilla.org/sops
|
|
|
|
RUN CGO_ENABLED=1 make install
|
|
|
|
|
|
FROM alpine:3.15
|
|
|
|
RUN apk --no-cache add \
|
|
vim ca-certificates
|
|
ENV EDITOR vim
|
|
COPY --from=builder /go/bin/sops /usr/local/bin/sops
|
|
ENTRYPOINT ["/usr/local/bin/sops"]
|