Skip to content
Open
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
16 changes: 16 additions & 0 deletions example/rainbow/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM arm32v6/golang:1.8-alpine
RUN apk update
RUN apk add git gcc musl-dev linux-headers
RUN go get github.com/johnmccabe/mote
RUN go get github.com/Masterminds/glide
WORKDIR /go/src/github.com/johnmccabe/mote/
COPY rainbow.go ./example/rainbow/
RUN glide install
RUN go build example/rainbow/rainbow.go

FROM arm32v6/alpine
LABEL org.label-schema.docker.cmd "docker run --device=/dev/ttyACM0 johnmccabe/mote-rainbow"
LABEL org.label-schema.description "Run the Pimoroni Mote Rainbow example on your Raspberry Pi (arm32v6)"
LABEL org.label-schema.url "https://github.com/johnmccabe/mote"
COPY --from=0 /go/src/github.com/johnmccabe/mote/rainbow /rainbow
CMD ["/rainbow"]