FROM docker.io/library/golang LABEL authors="Johannes Bülow " # Get all the stuff for CGO and Podman bindings RUN export DEBIAN_FRONTEND="noninteractive" \ && apt-get update \ && apt-get install --no-install-recommends -y software-properties-common \ && apt-get update \ && apt-get install --no-install-recommends -y \ bash \ binutils \ ca-certificates \ clang \ curl \ g++ \ gcc \ git \ libc6-dev \ libssl-dev \ libdevmapper-dev \ llvm \ make \ pkg-config \ tzdata \ uuid \ libgpgme-dev \ libbtrfs-dev \ golang-github-containerd-btrfs-dev \ && apt-get -y autoremove \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ && ln -sf /usr/include/asm-generic /usr/include/asm WORKDIR /usr/local/src COPY ./ ./ RUN go get . && go mod download && go build -o filegate