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:
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user