blob: 1a9cff0f70c79dbf5c04e114c9b97567cd8976d4 [file] [log] [blame]
Zack Williamsf350dc32019-03-19 16:36:07 -07001# Copyright 2019-present Open Networking Foundation
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.
14
15# xosproject/alpine-grpc-base
16FROM alpine:3.9.2
17
18# Install apk packages
19RUN apk add --no-cache \
20 build-base \
21 libffi-dev \
22 librdkafka-dev \
23 libressl-dev \
24 py-setuptools \
25 py2-pip \
26 python2-dev \
27 && mkdir /var/xos \
28 && pip freeze > /var/xos/pip_freeze_apk_`date -u +%Y%m%dT%H%M%S`
29
30# Install pip packages
31COPY requirements.txt /tmp/requirements.txt
32RUN pip install -r /tmp/requirements.txt \
33 && pip freeze > /var/xos/pip_freeze_alpine_grpc_base_`date -u +%Y%m%dT%H%M%S`
34
35# Label image
36ARG org_label_schema_version=unknown
37ARG org_label_schema_vcs_url=unknown
38ARG org_label_schema_vcs_ref=unknown
39ARG org_label_schema_build_date=unknown
40ARG org_opencord_vcs_commit_date=unknown
41
42LABEL org.label-schema.schema-version=1.0 \
43 org.label-schema.name=alpine-grpc-base \
44 org.label-schema.version=$org_label_schema_version \
45 org.label-schema.vcs-url=$org_label_schema_vcs_url \
46 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
47 org.label-schema.build-date=$org_label_schema_build_date \
48 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date