From 2b0901a98209f1963377e8baa6cc73c737c03c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Fri, 20 Dec 2024 13:35:30 +0100 Subject: [PATCH] Corrected Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 387fb8e..2938104 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine AS builder +FROM docker.io/library/golang:alpine AS builder RUN apk update \ && apk add --no-cache git \ && apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo @@ -6,7 +6,7 @@ RUN apk update \ WORKDIR $GOPATH/src/www-jmbit-de COPY . . RUN go get -d -v -RUN hugo --minify +RUN cd hugo && hugo RUN go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/www FROM scratch