Initialized using @stackr/sdk
npm start
- Build the image using the following command: (make sure you replace `<NPM_TOKEN>` with the actual value)
# For Linux
docker build -t counter-sepolia:latest . --build-arg NPM_TOKEN=<NPM_TOKEN>
# For Mac with Apple Silicon chips
docker buildx build --platform linux/amd64,linux/arm64 -t counter-sepolia:latest . --build-arg NPM_TOKEN=<NPM_TOKEN>
- Run the Docker container using the following command:
# If using SQLite as the datastore
docker run -v ./db.sqlite:/app/db.sqlite -p <HOST_PORT>:<CONTAINER_PORT> --name=counter-sepolia -it counter-sepolia:latest
# If using other URI based datastores
docker run -p <HOST_PORT>:<CONTAINER_PORT> --name=counter-sepolia -it counter-sepolia:latest