blob: 7a916b601effa691a19591f7809a14fbdde4ef9e [file] [log] [blame]
Matt Jeanneretbd71d6e2019-10-23 12:02:30 -04001# 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.
Matt Jeannereta2fdc732019-11-16 09:24:36 -050014FROM python:3.6.9-slim-buster
Matt Jeanneretbd71d6e2019-10-23 12:02:30 -040015
16# Update to have latest images
17RUN apt-get update && \
18 apt-get install -y --no-install-recommends \
Matt Jeannereta2fdc732019-11-16 09:24:36 -050019 ca-certificates=20190110 \
20 openssl=1.1.1d-0+deb10u2 \
21 iproute2=4.20.0-2 \
22 libpcap-dev=1.8.1-6 \
23 wget=1.20.1-1.1 \
24 build-essential=12.6 \
25 git=1:2.20.1-2 \
26 binutils=2.31.1-16 \
27 libffi-dev=3.2.1-9 \
28 libssl-dev=1.1.1d-0+deb10u2 \
29 librdkafka-dev=0.11.6-1.1 \
30 libzmq3-dev=4.3.1-4+deb10u1 \
31 libxml2-dev=2.9.4+dfsg1-7+b3 \
32 libxslt1-dev=1.1.32-2.2~deb10u1 \
33 pkg-config=0.29-6 \
34 python-pkgconfig=1.4.0-1 \
Matt Jeanneretbd71d6e2019-10-23 12:02:30 -040035 && apt-get clean && rm -rf /var/lib/apt/lists/*
36
Matt Jeannereta2fdc732019-11-16 09:24:36 -050037# Install adapter requirements. pip is included in python dockerhub images
Matt Jeanneretbd71d6e2019-10-23 12:02:30 -040038COPY requirements.txt /tmp/requirements.txt
Matt Jeannereta2fdc732019-11-16 09:24:36 -050039RUN pip install --no-cache-dir -r /tmp/requirements.txt
Matt Jeanneretbd71d6e2019-10-23 12:02:30 -040040
41# Label image
42ARG org_label_schema_version=unknown
43ARG org_label_schema_vcs_url=unknown
44ARG org_label_schema_vcs_ref=unknown
45ARG org_label_schema_build_date=unknown
46ARG org_opencord_vcs_commit_date=unknown
47
48LABEL org.label-schema.schema-version=1.0 \
49 org.label-schema.name=voltha-python-base \
50 org.label-schema.version=$org_label_schema_version \
51 org.label-schema.vcs-url=$org_label_schema_vcs_url \
52 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
53 org.label-schema.build-date=$org_label_schema_build_date \
54 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date