Skip to content

Commit 5352d6f

Browse files
tsvehagenbrocaar
authored andcommitted
Add Dockerfile.arm for arm based devices (#70)
This will for example work with Raspberry Pi
1 parent 5424b4e commit 5352d6f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile.arm

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM arm32v6/golang:1.9-alpine3.6 AS development
2+
3+
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
4+
ENV PATH=$PATH:$PROJECT_PATH/build
5+
6+
RUN apk add --no-cache ca-certificates make git bash
7+
8+
RUN mkdir -p $PROJECT_PATH
9+
COPY . $PROJECT_PATH
10+
WORKDIR $PROJECT_PATH
11+
12+
RUN make requirements
13+
RUN make GOARCH=arm
14+
15+
FROM alpine:latest AS production
16+
17+
WORKDIR /root/
18+
RUN apk --no-cache add ca-certificates
19+
COPY --from=development /go/src/github.com/brocaar/lora-gateway-bridge/build/lora-gateway-bridge .
20+
ENTRYPOINT ["./lora-gateway-bridge"]

0 commit comments

Comments
 (0)