From 84989eeec40ef8bc9ae5e922805d150ff56f6c77 Mon Sep 17 00:00:00 2001 From: huynaism Date: Fri, 8 Nov 2024 18:02:31 +0700 Subject: [PATCH] hadolint #15,#18 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2900df8..f73c657 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang:1.22.7 AS builder # Install cli tools for building and final image -RUN apt-get update && apt-get install --no-install-recommends -y make git bash gcc curl jq +RUN apt-get update && apt-get install --no-install-recommends -y make=4.3-4.1 git=1:2.39.5-0+deb12u1 bash=5.2.15-2+b7 gcc=4:12.2.0-3 curl=7.88.1-10+deb12u7 jq=1.6-2.1 && rm -rf /var/lib/apt/lists/* # Build WORKDIR /go/src/github.com/babylonlabs-io/btc-staker @@ -21,7 +21,7 @@ FROM debian:bookworm-slim AS run SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN addgroup --gid 1138 --system btcstaker && adduser --uid 1138 --system --home /home/btcstaker btcstaker -RUN apt-get update && apt-get install --no-install-recommends -y bash curl jq wget +RUN apt-get update && apt-get install --no-install-recommends -y bash=5.2.15-2+b7 curl=7.88.1-10+deb12u7 jq=1.6-2.1 wget=1.21.3-1+b2 && rm -rf /var/lib/apt/lists/* COPY --from=builder /go/src/github.com/babylonlabs-io/btc-staker/go.mod /tmp RUN WASMVM_VERSION=$(grep github.com/CosmWasm/wasmvm /tmp/go.mod | cut -d' ' -f2) && \