add arm-specific build flags
Some checks failed
/ build-container (push) Failing after 47s

This commit is contained in:
Finn 2024-04-23 20:28:26 -07:00
parent 4b34f8cd5e
commit ea0c09561f
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ FROM alpine:latest AS build
RUN apk add --no-cache go
ADD . /go/lockserver
WORKDIR /go/lockserver
RUN go build ./cmd/lockserver
RUN CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build ./cmd/lockserver
FROM alpine:latest
COPY --from=build /go/lockserver/lockserver /lockserver

View file

@ -1,5 +1,5 @@
{
"zwave-js-server": "ws://home-assistant:3000",
"sqlite-database": "lockserver.db",
"sqlite-database": "/data/lockserver.db",
"http-bind": ":8080"
}