near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
124 stars 56 forks source link

Refactor Dockerfile to use entrypoint approach instead of cmd #180

Closed khorolets closed 2 years ago

khorolets commented 2 years ago

In #177 a working Dockerfile was introduced. Thanks, @mieubrisse!

However, we'd like to consider refactoring the approach to use ENTRYPOINT instead of CMD

To allow users to use the published Docker image like:

$ docker run -it near/indexer-for-explorer --home-dir <path> run sync-from-latest

or to pass any other parameters and use it as a binary.