diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index b87a3104..7ab36f4e 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -77,4 +77,3 @@ jobs: platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - context: demo/ diff --git a/demo/Dockerfile b/Dockerfile similarity index 91% rename from demo/Dockerfile rename to Dockerfile index 79e3c250..7ba86c50 100644 --- a/demo/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apk add --no-cache ca-certificates build-base git WORKDIR /code # Download dependencies and CosmWasm libwasmvm if found. -ADD go.mod go.sum ./ +ADD demo/go.mod demo/go.sum ./ #ADD https://github.com/CosmWasm/wasmvm/releases/download/v$wasmvm/libwasmvm_muslc.$arch.a /lib/libwasmvm_muslc.$arch.a ## Download @@ -20,7 +20,7 @@ COPY . /code # force it to use static lib (from above) not standard libgo_cosmwasm.so file # then log output of file /code/bin/meshd # then ensure static linking -RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build \ +RUN cd demo/ && LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build \ && file /code/build/meshd \ && echo "Ensuring binary is statically linked ..." \ && (file /code/build/meshd | grep "statically linked")