c52561ffb2f3afb4386d35d59a1a1e2d2781cec4
[it/dev.git] / bldr-imgs / bldr-alpine3 / Dockerfile
1 # O-RAN-SC
2 #
3 # Copyright (C) 2019-2020 AT&T Intellectual Property and Nokia
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 # This is an all-things-to-all-ORAN-people Alpine 3.11 build image with:
18 # gcc/g++ v 8
19 # golang v 1.13.x
20 # python 3.7
21 # ORAN libraries are not provided here to reduce version churn
22
23 FROM python:3.7-alpine
24 RUN apk update && apk add \
25   autoconf \
26   automake \
27   build-base \
28   cmake \
29   libtool \
30   ninja \
31   pkgconfig \
32   python3-dev \
33   sudo \
34   git \
35   go
36
37 # the autoconf-archive in alpine's edge repos is too new
38 # for our purposes, so we'll use one from the source.
39 RUN cd /tmp \
40     && git clone --branch v2015.09.25 git://git.sv.gnu.org/autoconf-archive.git \
41     && cp /tmp/autoconf-archive/m4/* /usr/share/aclocal \
42     && rm -rf /tmp/autoconf-archive