Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN adduser -S clearnode -u 1001 -G clearnode
USER clearnode

COPY --from=builder /build/bin /bin
COPY --from=builder /build/.env /

EXPOSE 8000 4242

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,22 @@ Multiple networks can be added.

1. Set up environment variables:

```
``` env
BROKER_PRIVATE_KEY=your_private_key
DATABASE_DRIVER=postgres
DATABASE_URL=postgresql://user:password@postgres:5432/clearnode
CLEARNODE_DATABASE_URL=postgresql://user:password@postgres:5432/clearnode
POLYGON_INFURA_URL=https://polygon-mainnet.infura.io/v3/your_infura_key
POLYGON_CUSTODY_CONTRACT_ADDRESS=0xYourContractAddress
```

### Run locally

```go
go run ./...
go run .
```

### Build and Run the Docker Image


```bash
# Build the Docker image
docker build -t clearnode .
Expand Down
Loading