Zack Williams | f350dc3 | 2019-03-19 16:36:07 -0700 | [diff] [blame] | 1 | # 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 |
Scott Baker | 74dcd14 | 2019-05-07 10:37:22 -0700 | [diff] [blame] | 16 | FROM alpine:3.9.3 |
Zack Williams | f350dc3 | 2019-03-19 16:36:07 -0700 | [diff] [blame] | 17 | |
| 18 | # Install apk packages |
| 19 | RUN 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 |
| 31 | COPY requirements.txt /tmp/requirements.txt |
| 32 | RUN 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 |
| 36 | ARG org_label_schema_version=unknown |
| 37 | ARG org_label_schema_vcs_url=unknown |
| 38 | ARG org_label_schema_vcs_ref=unknown |
| 39 | ARG org_label_schema_build_date=unknown |
| 40 | ARG org_opencord_vcs_commit_date=unknown |
| 41 | |
| 42 | LABEL 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 |