Zsolt Haraszti | 361dc59 | 2016-09-25 22:25:23 -0700 | [diff] [blame] | 1 | # Copyright 2016 the original author or authors. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Zsolt Haraszti | 361dc59 | 2016-09-25 22:25:23 -0700 | [diff] [blame] | 14 | |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 15 | FROM alpine:3.6 |
Zsolt Haraszti | 361dc59 | 2016-09-25 22:25:23 -0700 | [diff] [blame] | 16 | |
| 17 | MAINTAINER Zsolt Haraszti <zharaszt@ciena.com> |
| 18 | MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us> |
| 19 | MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com> |
| 20 | |
| 21 | # Update to have latest images |
| 22 | RUN apk add --update python py-pip && \ |
| 23 | apk --allow-untrusted --no-cache -X http://apkproxy.heroku.com/andyshinn/alpine-pkg-glibc add glibc glibc-bin |
| 24 | |
| 25 | COPY requirements.txt /tmp/requirements.txt |
| 26 | |
| 27 | # Install app dependencies |
| 28 | RUN apk add build-base gcc abuild binutils python-dev libffi-dev openssl-dev git linux-headers && \ |
Khen Nursimulu | 6f319a3 | 2016-10-25 23:06:58 -0400 | [diff] [blame] | 29 | pip install cython==0.24.1 enum34 six && \ |
Zsolt Haraszti | 361dc59 | 2016-09-25 22:25:23 -0700 | [diff] [blame] | 30 | pip install -r /tmp/requirements.txt && \ |
| 31 | apk del --purge build-base gcc abuild binutils python-dev libffi-dev openssl-dev git linux-headers |
| 32 | |
| 33 | # Bundle app source |
| 34 | COPY voltha /voltha |
| 35 | |
| 36 | # Exposing process and default entry point |
| 37 | # EXPOSE 8000 |
| 38 | CMD ["python", "voltha/main.py"] |