-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release ci approach to use a single docker build step
- Loading branch information
Showing
2 changed files
with
27 additions
and
68 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
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 |
---|---|---|
@@ -1,25 +1,15 @@ | ||
FROM debian:bookworm-slim as base | ||
|
||
ARG TARGETPLATFORM | ||
|
||
LABEL description="Dojo is a provable game engine and toolchain for building onchain games and autonomous worlds with Cairo" \ | ||
authors="tarrence <[email protected]>" \ | ||
source="https://github.com/dojoengine/dojo" \ | ||
documentation="https://book.dojoengine.org/" | ||
|
||
FROM base as amd64 | ||
|
||
COPY --from=artifacts x86_64-unknown-linux-gnu/release/katana /usr/local/bin/katana | ||
COPY --from=artifacts x86_64-unknown-linux-gnu/release/sozo /usr/local/bin/sozo | ||
COPY --from=artifacts x86_64-unknown-linux-gnu/release/torii /usr/local/bin/torii | ||
|
||
RUN chmod +x /usr/local/bin/katana \ | ||
&& chmod +x /usr/local/bin/sozo \ | ||
&& chmod +x /usr/local/bin/torii | ||
|
||
FROM base as arm64 | ||
|
||
COPY --from=artifacts aarch64-unknown-linux-gnu/release/katana /usr/local/bin/katana | ||
COPY --from=artifacts aarch64-unknown-linux-gnu/release/sozo /usr/local/bin/sozo | ||
COPY --from=artifacts aarch64-unknown-linux-gnu/release/torii /usr/local/bin/torii | ||
COPY --from=artifacts $TARGETPLATFORM/katana /usr/local/bin/katana | ||
COPY --from=artifacts $TARGETPLATFORM/sozo /usr/local/bin/sozo | ||
COPY --from=artifacts $TARGETPLATFORM/torii /usr/local/bin/torii | ||
|
||
RUN chmod +x /usr/local/bin/katana \ | ||
&& chmod +x /usr/local/bin/sozo \ | ||
|