From 22f26829de5e32db585d387cdc39dc131570769f Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 6 Apr 2023 16:16:18 +0200 Subject: [PATCH] build: install necessary deps in docker (#15719) --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9c80faa13..2af186b6ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,11 @@ # # This image is pushed to the GHCR as https://ghcr.io/cosmos/simapp -# bullseye already comes with build dependencies, so we don't need anything extra to install -FROM --platform=$BUILDPLATFORM golang:1.20-bullseye AS build-env +FROM golang:1.20-alpine AS build-env + +# Install minimum necessary dependencies +ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev +RUN apk add --no-cache $PACKAGES # Set working directory for the build WORKDIR /go/src/github.com/cosmos/cosmos-sdk