annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
332
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
1 FROM arm32v6/python:2-alpine3.7
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
2
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
3
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
4 WORKDIR /opt
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
5 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
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
6
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
7 COPY requirements.txt ./
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
8 RUN pip download --cache-dir /tmp/pip-cache -r requirements.txt
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
9
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
10 RUN pip install --cache-dir /tmp/pip-cache -r requirements.txt
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
11
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
12 ADD https://projects.bigasterisk.com/rdfdb/more.tgz ./
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
13 RUN tar xvzf more.tgz
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
14
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
15 COPY *.py ./
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
16 COPY config/ ./config/
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
17
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
18 # merge this with above
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
19 RUN apk add --no-cache libc6-compat
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
20
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
21 CMD [ "python", "./piNode.py" ]