Dockerfile cache invalidating for nextepc build

This commit is contained in:
Sukchan Lee 2018-02-21 13:16:11 +09:00
parent f1b0cd5748
commit 2904284405
1 changed files with 8 additions and 3 deletions

View File

@ -7,14 +7,19 @@ MAINTAINER Sukchan Lee <acetcom@gmail.com>
WORKDIR /tmp
RUN git clone https://github.com/acetcom/nextepc
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
RUN cd nextepc && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -f -i && \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var && \
make -j `nproc` && \
make install
make -j `nproc` install
WORKDIR /root