Zsolt Haraszti | 7003f2b | 2016-09-08 15:56:14 -0700 | [diff] [blame] | 1 | FROM alpine:3.1 |
| 2 | |
| 3 | # Update to have latest images |
| 4 | RUN apk add --update python py-pip |
| 5 | |
Zsolt Haraszti | 593c49a | 2016-09-08 17:04:11 -0700 | [diff] [blame] | 6 | COPY requirements.txt /tmp/requirements.txt |
| 7 | |
Zsolt Haraszti | 7003f2b | 2016-09-08 15:56:14 -0700 | [diff] [blame] | 8 | # Install app dependencies |
Zsolt Haraszti | b09d88f | 2016-09-09 00:53:28 -0700 | [diff] [blame^] | 9 | RUN apk add build-base gcc abuild binutils python-dev libffi-dev openssl-dev && \ |
Zsolt Haraszti | 593c49a | 2016-09-08 17:04:11 -0700 | [diff] [blame] | 10 | pip install -r /tmp/requirements.txt && \ |
Zsolt Haraszti | b09d88f | 2016-09-09 00:53:28 -0700 | [diff] [blame^] | 11 | apk del --purge build-base gcc abuild binutils python-dev libffi-dev openssl-dev |
Zsolt Haraszti | 7003f2b | 2016-09-08 15:56:14 -0700 | [diff] [blame] | 12 | |
| 13 | # Bundle app source |
| 14 | COPY voltha /voltha |
| 15 | |
| 16 | # Exposing process and default entry point |
| 17 | # EXPOSE 8000 |
| 18 | CMD ["python", "voltha/voltha.py"] |