From b8c7c623221cf68d719496d62d3a867b443be3c5 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 28 Jun 2024 12:10:12 +0530 Subject: [PATCH] Use golang bullseye for building laconicd binary --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a52cb988..2f527b4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,4 @@ -FROM golang:alpine AS build-env - -# Install dependencies -RUN apk add --update git build-base linux-headers +FROM golang:1.21-bullseye AS builder # Set working directory for the build WORKDIR /go/src/git.vdb.to/cerc-io/laconicd @@ -22,11 +19,11 @@ FROM ubuntu:22.04 # Install ca-certificates, jq, curl, bash, and other necessary packages RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ - jq curl bash \ + jq curl netcat bash \ && rm -rf /var/lib/apt/lists/* -# Copy over binaries from the build-env -COPY --from=build-env /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd +# Copy over binary from the builder +COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd WORKDIR /