Skip to content

Commit

Permalink
Merge pull request #227 from CosmWasm/cleanup-dockerfile
Browse files Browse the repository at this point in the history
Cleanup dockerfile and add coral support
  • Loading branch information
ethanfrey authored Jul 27, 2020
2 parents e9e06a0 + 06c5e3a commit 23d1fd8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ RUN export GO_WASM_DIR=$(go list -f "{{ .Dir }}" -m github.com/CosmWasm/go-cosmw
FROM cosmwasm/go-ext-builder:0.8.2-alpine AS go-builder

RUN apk add git
# without this, build with LEDGER_ENABLED=false
RUN apk add libusb-dev linux-headers
# NOTE: add these to run with LEDGER_ENABLED=true
# RUN apk add libusb-dev linux-headers

WORKDIR /code
COPY . /code/

COPY --from=rust-builder /lib/libgo_cosmwasm_muslc.a /lib/libgo_cosmwasm_muslc.a

# force it to use static lib (from above) not standard libgo_cosmwasm.so file
RUN BUILD_TAGS=muslc make build
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc make build
# we also (temporarily) build the testnet binaries here
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc make build-coral

# --------------------------------------------------------
FROM alpine:3.12
Expand All @@ -42,6 +44,10 @@ COPY --from=go-builder /code/build/wasmd /usr/bin/wasmd
COPY --from=go-builder /code/build/wasmgovd /usr/bin/wasmgovd
COPY --from=go-builder /code/build/wasmcli /usr/bin/wasmcli

# testnet
COPY --from=go-builder /code/build/coral /usr/bin/coral
COPY --from=go-builder /code/build/corald /usr/bin/corald

COPY docker/* /opt/
RUN chmod +x /opt/*.sh

Expand Down

0 comments on commit 23d1fd8

Please sign in to comment.