diff options
Diffstat (limited to '')
-rw-r--r-- | hived/Dockerfile | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/hived/Dockerfile b/hived/Dockerfile index 64e4789..a9c84ac 100644 --- a/hived/Dockerfile +++ b/hived/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine3.19 as builder +FROM golang:1.22-alpine3.20 as builder RUN apk update && apk upgrade RUN apk add go git COPY go.* /hived/ @@ -6,14 +6,6 @@ RUN cd /hived && go mod download COPY *.go /hived/ RUN cd /hived && go build -FROM alpine:3.19 as certbuilder -RUN apk add openssl -WORKDIR /certs -RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert - -# FROM gcr.io/distroless/static-debian10 -FROM alpine:3.19 -COPY --from=certbuilder /certs /certs +FROM alpine:3.20 COPY --from=builder /hived/hived /hived/ -COPY ./docker-entrypoint.sh /hived/ -ENTRYPOINT ["/hived/docker-entrypoint.sh"] +ENTRYPOINT ["/hived/hived"] |