view service/piNode/Dockerfile @ 332:ca0fd0774d07

piNode Dockerfile based on alpine that's not working because of a libc issue Ignore-this: ca2f4e7fa346df7436ed60a516bc57f6
author drewp@bigasterisk.com
date Tue, 20 Feb 2018 21:35:03 -0800
parents
children f64e20d3407e
line wrap: on
line source

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" ]