diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,6 +1,8 @@ -FROM python:latest -RUN pip install unicornhathd Flask Flask-Sockets -RUN pip install numpy -COPY build/ /build/ -COPY server.py / -ENTRYPOINT python server.py +FROM golang:alpine +RUN apk update && apk add git +RUN go get github.com/ecc1/spi +RUN go get github.com/gorilla/websocket +COPY build/ build/ +COPY Server.go Unicorn.go RealUnicorn.go ./ +RUN go build -o ./unicornpaint Server.go Unicorn.go RealUnicorn.go +CMD ./unicornpaint |