Update template

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-12-06 19:50:16 +01:00
parent 088c796563
commit 57dc0a1015
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -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 "" -}}