Skip to content

Commit

Permalink
contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Jan 21, 2025
1 parent 1f35c1a commit bec021e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ go install
go run .
```

### Build for docker

```shell
CGO_ENABLED=0 GOOS=linux GOARCH=amd64
docker compose build
```

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ PLATFORM=local

# Build all files.
build:
@echo "==> Building ./dist/sdm"
@echo "==> Building..."
env GOOS=linux GOARCH=amd64 go build -o dist/digitalstrom-mqtt-amd64 ./main.go
.PHONY: build

build-arm:
@echo "==> Building ./dist/sdm"
@echo "==> Building..."
env GOOS=linux GOARCH=arm GOARM=5 go build -o dist/digitalstrom-mqtt-arm ./main.go
.PHONY: build

Expand Down

0 comments on commit bec021e

Please sign in to comment.