diff options
author | Martin Ashby <martin@ashbysoft.com> | 2018-05-19 07:54:17 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2018-05-19 07:54:17 +0000 |
commit | af39a6c058f8a368b582174c1dd79a525187bf36 (patch) | |
tree | 25c625742d1f356b8b9cf98b2d135a76b7310863 /Dockerfile | |
parent | 20ee809e540556801fca87a573852d16c2ac7388 (diff) | |
download | unicornpaint-af39a6c058f8a368b582174c1dd79a525187bf36.tar.gz unicornpaint-af39a6c058f8a368b582174c1dd79a525187bf36.tar.bz2 unicornpaint-af39a6c058f8a368b582174c1dd79a525187bf36.tar.xz unicornpaint-af39a6c058f8a368b582174c1dd79a525187bf36.zip |
Fixed saves problem in docker, speed up build
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 |