Skip to content

Commit

Permalink
Move dockerfile to root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Dec 14, 2023
1 parent ceac507 commit aec72cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ jobs:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
context: demo/
4 changes: 2 additions & 2 deletions demo/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit aec72cb

Please sign in to comment.