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 e7ac7ae23a - Show all commits

View File

@ -17,10 +17,13 @@ COPY . .
RUN make build RUN make build
# Final image # Final image
FROM alpine:3.17.0 FROM ubuntu:22.04
# Install ca-certificates # Install ca-certificates, jq, curl, bash, and other necessary packages
RUN apk add --update ca-certificates jq curl bash RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
jq curl bash \
&& rm -rf /var/lib/apt/lists/*
# Copy over binaries from the build-env # 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 --from=build-env /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd