From 5f9075231ff4e195dacd49b56a6402ee3acccd88 Mon Sep 17 00:00:00 2001 From: dpierret Date: Thu, 13 Oct 2022 10:51:49 +0200 Subject: [PATCH] feat(ledger): fix install dependancies in dockerfile - remove RUN step - add linux-headers=5.16.7-r1 to already existing RUN step Signed-off-by: dpierret --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a3231b8..01779231 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,6 @@ #--- Build stage FROM golang:1.19-alpine3.16 AS go-builder -# install Linux header and build-base for native C codes -RUN apk add --no-cache \ - ca-certificates \ - build-base \ - linux-headers - WORKDIR /src # CosmWasm: see https://github.com/CosmWasm/wasmvm/releases @@ -15,7 +9,7 @@ ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc. # hadolint ignore=DL4006 RUN set -eux \ - && apk add --no-cache ca-certificates=20220614-r0 build-base=0.5-r3 git=2.36.2-r0 \ + && apk add --no-cache ca-certificates=20220614-r0 build-base=0.5-r3 git=2.36.2-r0 linux-headers=5.16.7-r1 \ && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 9ecb037336bd56076573dc18c26631a9d2099a7f2b40dc04b6cae31ffb4c8f9a \ && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32 \ && cp "/lib/libwasmvm_muslc.$(uname -m).a" /lib/libwasmvm_muslc.a