diff service/piNode/Dockerfile @ 1137:6ffff91eea2f

piNode Dockerfile based on alpine that's not working because of a libc issue Ignore-this: ca2f4e7fa346df7436ed60a516bc57f6 darcs-hash:145d14e725ba4c062335e47c64f5c13901b2c4c3
author drewp <drewp@bigasterisk.com>
date Tue, 20 Feb 2018 21:35:03 -0800
parents
children f64e20d3407e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/piNode/Dockerfile	Tue Feb 20 21:35:03 2018 -0800
@@ -0,0 +1,21 @@
+FROM arm32v6/python:2-alpine3.7
+
+
+WORKDIR /opt
+RUN apk add --no-cache git gcc linux-headers musl-dev libffi-dev py2-numpy openssl-dev jpeg-dev py2-cffi py2-cryptography py2-numpy py2-numpy-f2py
+
+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
+
+ADD https://projects.bigasterisk.com/rdfdb/more.tgz ./
+RUN tar xvzf more.tgz
+
+COPY *.py ./
+COPY config/ ./config/
+
+# merge this with above
+RUN apk add --no-cache libc6-compat
+
+CMD [ "python", "./piNode.py" ]