Skip to content

Commit

Permalink
Fixup - container file
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Jun 5, 2024
1 parent 42bfabc commit 87f8e0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/defradb.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ RUN make deps:modules
COPY . .
COPY --from=PLAYGROUND_BUILD /repo/dist /repo/playground/dist/
ENV BUILD_TAGS=playground
# manually copy libwasmer.so to fix linking issue https://github.com/wasmerio/wasmer-go/issues/281
RUN export WASMER_ARCH=$(go env GOHOSTARCH | sed "s/arm64/aarch64/") && \
export WASMER_PATH=$(go env GOMODCACHE)/github.com/wasmerio/[email protected]/wasmer/packaged/lib/linux-$WASMER_ARCH/libwasmer.so && \
cp $WASMER_PATH /lib/libwasmer.so
RUN make build

# Stage: RUN
FROM debian:bookworm-slim
COPY --from=BUILD /repo/build/defradb /defradb
COPY --from=BUILD /lib/libwasmer.so /lib/libwasmer.so

# Documents which ports are normally used.
# To publish the ports: `docker run -p 9181:9181` ...
Expand Down

0 comments on commit 87f8e0e

Please sign in to comment.