Replace alpine with ubuntu as base image in the Dockerfile #31
11
Dockerfile
11
Dockerfile
@ -1,7 +1,4 @@
|
|||||||
FROM golang:alpine AS build-env
|
FROM golang:1.21-bullseye AS builder
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN apk add --update git build-base linux-headers
|
|
||||||
|
|
||||||
# Set working directory for the build
|
# Set working directory for the build
|
||||||
WORKDIR /go/src/git.vdb.to/cerc-io/laconicd
|
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
|
# Install ca-certificates, jq, curl, bash, and other necessary packages
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
jq curl bash \
|
jq curl netcat bash \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy over binaries from the build-env
|
# Copy over binary from the builder
|
||||||
COPY --from=build-env /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user