From a028aebdd95ba57eefa433931b81ed1fa4ff8324 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 25 Jul 2023 08:55:16 +0200 Subject: [PATCH] ensure distro has all updates installed --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2cebf705c..2cc9bfc3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM golang:1.20.6-alpine AS builder -RUN apk --no-cache add gcc musl-dev git +RUN apk update +RUN apk upgrade +RUN apk add gcc musl-dev git WORKDIR ${GOPATH}/src/github.com/netresearch/ofelia @@ -17,6 +19,7 @@ FROM alpine:3.18 LABEL ofelia.service=true LABEL ofelia.enabled=true +RUN apk --no-cache upgrade RUN apk --no-cache add ca-certificates tzdata COPY --from=builder /go/bin/ofelia /usr/bin/ofelia