From af39a6c058f8a368b582174c1dd79a525187bf36 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 19 May 2018 07:54:17 +0000 Subject: Fixed saves problem in docker, speed up build --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Dockerfile') 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 -- cgit v1.2.3-ZIG