utility-containers/builder/Dockerfile

35 lines
892 B
Docker

FROM docker.io/library/golang
LABEL authors="Johannes Bülow <johannes.buelow@jmbit.de>"
# 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