[VAL-93] Fix docker binary execution error
[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 python:3.6-alpine3.9
19
20 RUN apk --no-cache add --update \
21         gcc \
22         git \
23         libc6-compat \
24         libc-dev \
25         libffi \
26         libffi-dev \
27         make \
28         openssl-dev
29
30 # Build binaries
31 RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
32 RUN pip3 install -r /opt/akraino/validation/bluval/requirements.txt
33
34 WORKDIR /opt/akraino/validation
35 ENTRYPOINT  ["python3", "bluval/blucon.py"]