Merge pull request #227 from CosmWasm/cleanup-dockerfile
Cleanup dockerfile and add coral support
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -24,8 +24,8 @@ 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/
|
||||
@@ -33,7 +33,9 @@ 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user