blob: 8d04cb16291a38a34b0ee5f8a177ae4a0d382d42 [file] [log] [blame]
Zsolt Haraszti361dc592016-09-25 22:25:23 -07001# 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 Haraszti361dc592016-09-25 22:25:23 -070014
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080015FROM alpine:3.6
Zsolt Haraszti361dc592016-09-25 22:25:23 -070016
17MAINTAINER Zsolt Haraszti <zharaszt@ciena.com>
18MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us>
19MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com>
20
21# Update to have latest images
22RUN 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
25COPY requirements.txt /tmp/requirements.txt
26
27# Install app dependencies
28RUN apk add build-base gcc abuild binutils python-dev libffi-dev openssl-dev git linux-headers && \
Khen Nursimulu6f319a32016-10-25 23:06:58 -040029 pip install cython==0.24.1 enum34 six && \
Zsolt Haraszti361dc592016-09-25 22:25:23 -070030 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
34COPY voltha /voltha
35
36# Exposing process and default entry point
37# EXPOSE 8000
38CMD ["python", "voltha/main.py"]