aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMartin Ashby <martin@martin-laptop.lan>2018-05-19 11:33:21 +0100
committerMartin Ashby <martin@martin-laptop.lan>2018-05-19 11:33:21 +0100
commit445de8359766b4fe04750335dbadec21312bc4c6 (patch)
treefdbc14dcb179abd9984a90a362e57285295e3428 /Dockerfile
parentfd941a660c7758949f292a89310a4a270dc5cc63 (diff)
parent16eae485812b34fed96eeac39f082bfcb7750d7e (diff)
downloadunicornpaint-445de8359766b4fe04750335dbadec21312bc4c6.tar.gz
unicornpaint-445de8359766b4fe04750335dbadec21312bc4c6.tar.bz2
unicornpaint-445de8359766b4fe04750335dbadec21312bc4c6.tar.xz
unicornpaint-445de8359766b4fe04750335dbadec21312bc4c6.zip
Merge branch 'master' of github.com:MFAshby/unicornpaint
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index a6fed73..fdb4794 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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