vault-wrap: Вроде починил сборку
This commit is contained in:
parent
95e28b0772
commit
fc6232484d
24
Dockerfile
24
Dockerfile
|
@ -1,24 +1,24 @@
|
|||
FROM golang:1.22 AS build
|
||||
#FROM golang:1.22 AS build
|
||||
FROM golang:alpine3.20 AS build
|
||||
|
||||
RUN apk --no-cache add gcc g++ make git
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN go get net/netip
|
||||
RUN go get ./...
|
||||
|
||||
RUN GOOS=linux go build -ldflags="-s -w" -o ./bin/vault-wrap ./vault.go
|
||||
|
||||
FROM alpine:3.20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p /usr/local/share/vault-wrap && mkdir -p /var/log/vault-wrap
|
||||
|
||||
RUN apk add tzdata
|
||||
WORKDIR /usr/bin
|
||||
|
||||
COPY --from=build /app/bin/vault-wrap /go/bin/vault-wrap
|
||||
|
||||
COPY --from=build /app/bin /go/bin
|
||||
|
||||
COPY entrypoint.sh .
|
||||
|
||||
# COPY cronjobs /etc/crontabs/root
|
||||
|
||||
# start crond with log level 8 in foreground, output to stderr
|
||||
# CMD ["crond", "-f", "-d", "8"]
|
||||
|
||||
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user