Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix osmosis Dockerfile #984

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading