Use golang bullseye for building laconicd binary
This commit is contained in:
parent
e7ac7ae23a
commit
b8c7c62322
11
Dockerfile
11
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 /
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user