-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
1 changed file
with
13 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM debian:bookworm as builder | ||
WORKDIR /usr/src/app | ||
RUN apt-get update && apt-get install --assume-yes curl | ||
RUN curl -LJO https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore/Linux-x86_64/master/d08187094a82b3bfab3b8b0fa076e71068f39cb7/near-sandbox.tar.gz | ||
RUN tar -xf near-sandbox.tar.gz | ||
|
||
FROM debian:bookworm-slim as runtime | ||
WORKDIR /usr/local/bin | ||
COPY --from=builder /usr/src/app/Linux-x86_64/near-sandbox /usr/local/bin/near-sandbox | ||
RUN apt-get update && apt-get install --assume-yes curl | ||
RUN near-sandbox --home /root/.near init | ||
|
||
ENTRYPOINT [ "near-sandbox", "--home", "/root/.near", "run" ] |