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 | |
Kim Kempf | 01e23a8 | 2018-02-09 14:23:50 -0800 | [diff] [blame] | 17 | MAINTAINER Voltha Community <info@opennetworking.org> |
Zsolt Haraszti | 361dc59 | 2016-09-25 22:25:23 -0700 | [diff] [blame] | 18 | |
| 19 | # Update to have latest images |
| 20 | RUN apk add --update python py-pip && \ |
| 21 | apk --allow-untrusted --no-cache -X http://apkproxy.heroku.com/andyshinn/alpine-pkg-glibc add glibc glibc-bin |
| 22 | |
| 23 | COPY requirements.txt /tmp/requirements.txt |
| 24 | |
| 25 | # Install app dependencies |
| 26 | 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] | 27 | pip install cython==0.24.1 enum34 six && \ |
Zsolt Haraszti | 361dc59 | 2016-09-25 22:25:23 -0700 | [diff] [blame] | 28 | pip install -r /tmp/requirements.txt && \ |
| 29 | apk del --purge build-base gcc abuild binutils python-dev libffi-dev openssl-dev git linux-headers |
| 30 | |
| 31 | # Bundle app source |
| 32 | COPY voltha /voltha |
| 33 | |
| 34 | # Exposing process and default entry point |
| 35 | # EXPOSE 8000 |
| 36 | CMD ["python", "voltha/main.py"] |