Mercurial > code > home > repos > homeauto
diff service/arduinoNode/Dockerfile @ 336:5a0dd334023e
docker and makefile for arduinoNode
Ignore-this: bdff7ca263b699f7829da324807a557
author | drewp@bigasterisk.com |
---|---|
date | Sat, 03 Mar 2018 18:01:02 -0800 |
parents | |
children | 13b2a61650c1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/arduinoNode/Dockerfile Sat Mar 03 18:01:02 2018 -0800 @@ -0,0 +1,18 @@ +FROM alpine:3.7 + +WORKDIR /opt +RUN apk add --no-cache gcc build-base jpeg-dev lapack-dev libffi-dev linux-headers musl-dev openssl-dev py2-cffi py2-numpy py2-numpy-f2py py2-pip python2 python2-dev indent + +COPY requirements.txt ./ +RUN pip download --cache-dir /tmp/pip-cache -r requirements.txt +RUN pip install --cache-dir /tmp/pip-cache -r requirements.txt + +COPY *.py ./ +COPY static/ ./static/ + +ADD https://projects.bigasterisk.com/rdfdb/more.tgz ./ +RUN tar xvzf more.tgz + +EXPOSE 9059 + +CMD [ "python", "./arduinoNode.py" ]