Dockerize Anvil
#7151
Replies: 1 comment 1 reply
-
I think there might be an issue with your ENTRYPOINT command and/or environment variables. Can you try the following Dockerfile: # syntax=docker/dockerfile:1.4
FROM ghcr.io/foundry-rs/foundry
WORKDIR /anvil
ENTRYPOINT anvil --fork-url $FORK_URL --host 0.0.0.0 where |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'd like to run an instance of anvil inside a docker container.
As I want to start the anvil docker container along with some other containers via a docker-compose.yml file, I need a simple Dockerfile that spins up anvil as standard ENTRYPOINT.
Sth. like:
Unfortunately this does not work as expected. I get a warning about the image's platform:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
And an error:
error: unexpected argument '--fork-url [RPC-URL] --fork-block-number 19233900 --port 7171 --host 127.0.0.1 --chain-id 1337 --steps-tracing --block-time 12' found
Usage: anvil [OPTIONS] [COMMAND]
Is there a better way to set this up?
Beta Was this translation helpful? Give feedback.
All reactions