open5gs/docker/build/Dockerfile

25 lines
615 B
Docker
Raw Normal View History

2018-02-20 10:36:34 +00:00
ARG dist=ubuntu
ARG tag=latest
ARG username=acetcom
2018-05-29 08:41:11 +00:00
FROM ${username}/${dist}-${tag}-nextepc-base
2018-02-20 10:36:34 +00:00
MAINTAINER Sukchan Lee <acetcom@gmail.com>
2018-02-21 14:20:48 +00:00
WORKDIR /root
COPY setup.sh /root
2018-02-20 10:36:34 +00:00
ARG USER=open5gs
ARG REPO=nextepc
ARG BRANCH=master
RUN git clone --recursive https://github.com/$USER/$REPO
2018-02-21 14:20:48 +00:00
ADD https://api.github.com/repos/$USER/$REPO/git/refs/heads/$BRANCH /root/nextepc-ver.json
2018-02-20 10:36:34 +00:00
RUN cd nextepc && \
git fetch && git checkout -f -B master origin/master && \
2018-02-20 14:49:24 +00:00
autoreconf -f -i && \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var && \
make -j `nproc` install