compile program statically
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6f9c8aca96
commit
89a3cf0eab
2 changed files with 7 additions and 10 deletions
|
@ -1,9 +0,0 @@
|
|||
FROM alpine:3.14.1 as alpine
|
||||
RUN apk add -U --no-cache ca-certificates
|
||||
FROM alpine:3.14.1
|
||||
EXPOSE 3000
|
||||
LABEL maintainer="dockerhub@enderware.de"
|
||||
ENV GODEBUG netdns=go
|
||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
ADD gitea-attachements-proxy /bin/
|
||||
ENTRYPOINT ["/bin/gitea-attachements-proxy"]
|
|
@ -13,16 +13,22 @@ pkgs.buildGo117Module {
|
|||
src = ./.;
|
||||
|
||||
buildInputs = [
|
||||
stdenv glibc.static
|
||||
] ++deps;
|
||||
nativeBuildInputs = [
|
||||
] ++nativeDeps;
|
||||
|
||||
tags = [ ];
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-linkmode external"
|
||||
"-extldflags -static"
|
||||
];
|
||||
|
||||
allowGoReference = false;
|
||||
|
||||
#vendorSha256 = lib.fakeSha256;
|
||||
vendorSha256 = "sha256-K5EBHiU03DMzD/E4yuCLq6p+G0PU62bR1BHuGtA3KhU=";
|
||||
vendorSha256 = "sha256-2UA3WfEN/TxxsBgiEQv6O90k/AJOsy76Di/kbRBJNfY=";
|
||||
|
||||
meta = {
|
||||
description = "A Wrapper around the gitea API to get attachments by tags";
|
||||
|
|
Loading…
Reference in a new issue