Merged in update/ci (pull request #127)

added CI

* onlywherenecessary

* export

* dockersocketoverride

* disablecleanup

* networkfromenv

* fullsuite

* ci

* dockerhost

* name

* network

* buildfirst

* rm

* caches

* additionalcaches

* additionalcaches

* cachenix

* nix

* requiredprofile

* nonixcache

* nobuild

* moremem

* rmgomodules

* buildfirst

* faster

* clean
This commit is contained in:
Michael McGuinness
2025-05-08 16:04:45 +00:00
parent e84454b46f
commit c4c0b9bd32
15 changed files with 416 additions and 334 deletions
+3 -4
View File
@@ -29,12 +29,12 @@ ENV CGO_ENABLED=1
ENV GOARCH=${TARGETARCH}
ENV CC=musl-gcc
RUN --mount=type=cache,target=/go/pkg/mod/ \
RUN mkdir bin/ && \
go build \
-mod vendor \
-tags musl \
-ldflags "-linkmode external -extldflags -static" \
-o /bin ./cmd/...
-o bin/ ./cmd/...
FROM scratch AS final
@@ -43,7 +43,6 @@ ENV PWD=/app
WORKDIR ${PWD}
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /bin/ .
COPY --from=build /app/bin/ .
EXPOSE 8080