Skip to content

Commit

Permalink
fix osmosis Dockerfile (quicksilver-zone#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowman authored Jan 2, 2024
1 parent 8953bb0 commit 28110da
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile.osmosis
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk add git
# Needed by github.com/zondax/hid
RUN apk add linux-headers

RUN git clone https://github.com/osmosis-labs/osmosis /osmosis --branch v21.1.2
RUN git clone https://github.com/osmosis-labs/osmosis /osmosis --branch v21.1.4
WORKDIR /osmosis

RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') && \
Expand All @@ -27,15 +27,11 @@ RUN BUILD_TAGS=muslc LINK_STATICALLY=true make build

FROM alpine:3.18

RUN apt update && apt install bash -y
RUN apk add --no-cache bash ca-certificates jq
COPY --from=build /osmosis/build/osmosisd /bin/osmosisd

RUN useradd --system -m -d /osmosis --uid 1000 osmosis
RUN adduser -S -h /osmosis -D osmosis -u 1000
WORKDIR /osmosis

USER osmosis

EXPOSE 26656
EXPOSE 26657
EXPOSE 1317

0 comments on commit 28110da

Please sign in to comment.