Mercurial > code > home > repos > homeauto
annotate service/arduinoNode/Dockerfile @ 1141:34fa399dc5c9
docker and makefile for arduinoNode
Ignore-this: bdff7ca263b699f7829da324807a557
darcs-hash:e5ad82fef1f11b07fcb3d6d73bd5d3c8863308d5
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 03 Mar 2018 18:01:02 -0800 |
parents | |
children | 13b2a61650c1 |
rev | line source |
---|---|
1141
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 FROM alpine:3.7 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 WORKDIR /opt |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 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 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 COPY requirements.txt ./ |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 RUN pip download --cache-dir /tmp/pip-cache -r requirements.txt |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 RUN pip install --cache-dir /tmp/pip-cache -r requirements.txt |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 COPY *.py ./ |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 COPY static/ ./static/ |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 ADD https://projects.bigasterisk.com/rdfdb/more.tgz ./ |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 RUN tar xvzf more.tgz |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 EXPOSE 9059 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 CMD [ "python", "./arduinoNode.py" ] |