open5gs/support/docker/build/Dockerfile

26 lines
584 B
Docker
Raw Normal View History

2018-02-20 10:36:34 +00:00
ARG dist=ubuntu
ARG tag=latest
ARG username=acetcom
FROM ${username}/${dist}-${tag}-base
MAINTAINER Sukchan Lee <acetcom@gmail.com>
WORKDIR /tmp
ARG USER=acetcom
ARG REPO=nextepc
ARG BRANCH=master
RUN git clone https://github.com/$USER/$REPO
ADD https://api.github.com/repos/$USER/$REPO/git/refs/heads/$BRANCH /tmp/version.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
2018-02-20 14:49:24 +00:00
WORKDIR /root