Skip to content

Commit

Permalink
hadolint #15,#18
Browse files Browse the repository at this point in the history
  • Loading branch information
huynaism authored and filippos47 committed Nov 22, 2024
1 parent 5f889c6 commit 5c36e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.23.1 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
Expand All @@ -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) && \
Expand Down

0 comments on commit 5c36e08

Please sign in to comment.