blob: 0ea2bdf0ac3c630a2a5e9c17a427a40c343ab103 [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
Kim Kempf01e23a82018-02-09 14:23:50 -080017MAINTAINER Voltha Community <info@opennetworking.org>
Zsolt Haraszti361dc592016-09-25 22:25:23 -070018
19# Update to have latest images
20RUN 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
23COPY requirements.txt /tmp/requirements.txt
24
25# Install app dependencies
26RUN apk add build-base gcc abuild binutils python-dev libffi-dev openssl-dev git linux-headers && \
Khen Nursimulu6f319a32016-10-25 23:06:58 -040027 pip install cython==0.24.1 enum34 six && \
Zsolt Haraszti361dc592016-09-25 22:25:23 -070028 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
32COPY voltha /voltha
33
34# Exposing process and default entry point
35# EXPOSE 8000
36CMD ["python", "voltha/main.py"]