diff --git a/Dockerfile b/Dockerfile index 214051d..a001536 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,9 @@ RUN go build FROM debian:buster-slim +RUN mkdir /data WORKDIR /app COPY --from=builder /app/ethdo /app -ENTRYPOINT ["/app/ethdo"] \ No newline at end of file +ENTRYPOINT ["/app/ethdo", "--basedir=/data"] diff --git a/README.md b/README.md index 2b23d41..98d6750 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ If using the filesystem store, the additional parameter `basedir` can be supplie > If using docker as above you can make this directory accessible to docker to make wallets and accounts persistent. For example, for linux you could use the following command to list your wallets on Linux: > > ``` -> docker run -v $HOME/.config/ethereum2/wallets:/data ethdo --basedir=/data wallet list +> docker run -v $HOME/.config/ethereum2/wallets:/data ethdo wallet list > ``` > > This will allow you to use `ethdo` with or without docker, with the same location for wallets and accounts.