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 | |
| 6 | # Install app dependencies |
| 7 | RUN apk add build-base gcc abuild binutils python-dev && \ |
Zsolt Haraszti | 3263da4 | 2016-09-08 16:31:04 -0700 | [diff] [blame] | 8 | pip install scapy twisted && \ |
| 9 | apk del --purge build-base gcc abuild binutils python-dev |
Zsolt Haraszti | 7003f2b | 2016-09-08 15:56:14 -0700 | [diff] [blame] | 10 | |
| 11 | # Bundle app source |
| 12 | COPY voltha /voltha |
| 13 | |
| 14 | # Exposing process and default entry point |
| 15 | # EXPOSE 8000 |
| 16 | CMD ["python", "voltha/voltha.py"] |