build: install necessary deps in docker (#15719)

This commit is contained in:
Julien Robert 2023-04-06 16:16:18 +02:00 committed by GitHub
parent 43cfdfe618
commit 22f26829de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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