-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cf51d6
commit 17150d0
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` ... | ||
|