[VAL-87] Bluval Containerization
[validation.git] / bluval / Dockerfile
1 ##############################################################################
2 # Copyright (c) 2019 AT&T, ENEA Nokia and others                             #
3 #                                                                            #
4 # Licensed under the Apache License, Version 2.0 (the "License");            #
5 # you maynot use this file except in compliance with the License.            #
6 #                                                                            #
7 # You may obtain a copy of the License at                                    #
8 #       http://www.apache.org/licenses/LICENSE-2.0                           #
9 #                                                                            #
10 # Unless required by applicable law or agreed to in writing, software        #
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
13 # See the License for the specific language governing permissions and        #
14 # limitations under the License.                                             #
15 ##############################################################################
16
17 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
18 FROM ubuntu:18.04 as build
19
20 RUN apt-get update && apt-get -y install git python3-pip python3.6
21
22 # Build binaries
23 RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
24 RUN pip3 install -r /opt/akraino/validation/bluval/requirements.txt
25
26 ENV LC_ALL=C.UTF-8
27 ENV LANG=C.UTF-8
28
29 WORKDIR /opt/akraino/validation
30 ENTRYPOINT  ["python3", "bluval/blucon.py"]