vault-unwrap/Dockerfile

24 lines
372 B
Docker
Raw Normal View History

FROM golang:1.22 AS build
WORKDIR /app
COPY . .
RUN GOOS=linux go build -ldflags="-s -w" -o ./bin/vault-wrap ./vault.go
FROM alpine:3.20
WORKDIR /app
2024-07-09 16:50:26 +03:00
RUN mkdir -p /usr/local/share/vault-wrap && mkdir -p /var/log/vault-wrap
WORKDIR /usr/bin
2024-07-09 16:50:26 +03:00
COPY --from=build /app/bin/vault-wrap /go/bin/vault-wrap
COPY entrypoint.sh .
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]