From fc6232484dfcbdc699ccf67fcbca7f5623436a7f Mon Sep 17 00:00:00 2001 From: svkalinin Date: Wed, 10 Jul 2024 16:38:47 +0300 Subject: [PATCH] =?UTF-8?q?vault-wrap:=20=D0=92=D1=80=D0=BE=D0=B4=D0=B5=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20=D1=81=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index b76872d..4fe7ed7 100644 --- a/Dockerfile +++ b/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"]