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