Skip to content

Commit

Permalink
Merge pull request #17 from jprendes/main
Browse files Browse the repository at this point in the history
Use abs path for entrypoint and make it executable
  • Loading branch information
hydai authored Aug 22, 2023
2 parents 2a4429c + b1ebb29 commit 5d361ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ COPY src ./src
RUN cargo build --target wasm32-wasi --release
# This line builds the AOT Wasm binary
RUN /root/.wasmedge/bin/wasmedgec target/wasm32-wasi/release/order_demo_service.wasm order_demo_service.wasm
RUN chmod a+x order_demo_service.wasm

FROM scratch
ENTRYPOINT [ "order_demo_service.wasm" ]
ENTRYPOINT [ "/order_demo_service.wasm" ]
COPY --link --from=build /src/order_demo_service.wasm /order_demo_service.wasm

0 comments on commit 5d361ce

Please sign in to comment.