91250f199a
* DRY the docker prefix and wasmd variables * Don't re-init nymd for the same container * Specify env variables in x property * Contract uploader now uses BECH32_PREFIX env var
13 lines
358 B
Docker
13 lines
358 B
Docker
FROM golang:buster as go_builder
|
|
ARG BECH32_PREFIX
|
|
ARG WASMD_VERSION
|
|
RUN apt update && apt install -y git build-essential
|
|
COPY setup.sh .
|
|
RUN ./setup.sh
|
|
|
|
FROM ubuntu:20.04
|
|
COPY --from=go_builder /go/wasmd/build/nymd /root/nymd
|
|
COPY --from=go_builder /go/wasmd/build/libwasmvm.so /root/libwasmvm.so
|
|
COPY init_and_start.sh .
|
|
ENTRYPOINT ["./init_and_start.sh"]
|