Replace alpine with ubuntu as base image in the Dockerfile #31

Merged
ashwin merged 4 commits from pm-use-ubuntu into main 2024-07-10 14:36:09 +00:00
Showing only changes of commit b8c7c62322 - Show all commits

View File

@ -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 /