From 57dc0a1015bb0897c236742ba2cbe5ded5630ada Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 6 Dec 2024 19:50:16 +0100 Subject: [PATCH] Update template Signed-off-by: Knut Ahlers --- .config/gen-dockerfile.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/gen-dockerfile.tpl b/.config/gen-dockerfile.tpl index 02548f9..d96622c 100755 --- a/.config/gen-dockerfile.tpl +++ b/.config/gen-dockerfile.tpl @@ -1,4 +1,4 @@ -FROM golang:alpine as builder +FROM golang:alpine AS builder {{ if hasFeature "private-mods" -}} ARG VAULT_ADDR @@ -10,8 +10,8 @@ RUN set -ex \ && git config --global credential.helper 'vault --vault-path-prefix {{ env `VAULT_GIT_CREDENTIAL_PATH` }}' {{- end }} -COPY . /go/src/{{ .package }} -WORKDIR /go/src/{{ .package }} +COPY . /src/{{ .binary }} +WORKDIR /src/{{ .binary }} RUN set -ex \ && apk add --update git \ @@ -24,7 +24,7 @@ RUN set -ex \ FROM alpine:latest -LABEL maintainer "{{ .git_name }} <{{ .git_mail }}>" +LABEL maintainer="{{ .git_name }} <{{ .git_mail }}>" RUN set -ex \ {{ if ne .timezone "" -}}