From 4222c468c58a8970478190d027e2337a5d697f39 Mon Sep 17 00:00:00 2001 From: svkalinin Date: Wed, 10 Jul 2024 13:24:42 +0300 Subject: [PATCH] =?UTF-8?q?vault-wrap:=20=D0=9F=D0=BE=D1=87=D0=B8=D0=BD?= =?UTF-8?q?=D1=8F=D0=B5=D0=BC=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D1=83=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 87bb10a..03a1a76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,31 +1,23 @@ -FROM golang:alpine AS build -RUN apk --no-cache add gcc g++ make git +FROM golang:1.22 AS build -WORKDIR /go/src/app +WORKDIR /app COPY . . -RUN go get ./... RUN GOOS=linux go build -ldflags="-s -w" -o ./bin/vault-wrap ./vault.go FROM alpine:3.20 -RUN apk add tzdata -#RUN apk --no-cache add ca-certificates + +WORKDIR /app RUN mkdir -p /usr/local/share/vault-wrap && mkdir -p /var/log/vault-wrap WORKDIR /usr/bin -COPY --from=build /go/src/app/bin /go/bin +COPY --from=build /app/bin /go/bin -# COPY cronjobs /etc/crontabs/root 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"]