From 2ecace3e90e9874140d1b8f8a2ce583847daa645 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 31 Mar 2024 01:39:00 +0100 Subject: [PATCH] fix: add missing packages on final layer Closes https://git.coopcloud.tech/coop-cloud/organising/issues/598 --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21b0f52e..ad13b47a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,29 @@ +# Build image FROM golang:1.21-alpine AS build ENV GOPRIVATE coopcloud.tech RUN apk add --no-cache \ - ca-certificates \ gcc \ git \ make \ musl-dev -RUN update-ca-certificates - COPY . /app WORKDIR /app RUN CGO_ENABLED=0 make build -FROM scratch +# Release image ("slim") +FROM alpine:3.19.1 + +RUN apk add --no-cache \ + ca-certificates \ + git \ + openssh + +RUN update-ca-certificates COPY --from=build /app/abra /abra