summaryrefslogtreecommitdiff
path: root/other/docker/autotools/Dockerfile
blob: 9922a62bc64f96c5896b2794f0668924ed8ea443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
################################################
# autotools-linux
FROM localbuild/travis:1.0.0

USER root
RUN apt-get update && apt-get install --no-install-recommends -y \
 autoconf \
 automake \
 libtool \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
USER travis

# Copy minimal files to run "autotools-linux install", so we can avoid
# rebuilding nacl and other things when only source files change.
RUN mkdir -p /home/travis/build/c-toxcore /home/travis/cache
WORKDIR /home/travis/build/c-toxcore
COPY --chown=travis:travis c-toxcore/.travis/ /home/travis/build/c-toxcore/.travis/
RUN .travis/autotools-linux install

# Now copy the rest of the sources and run the build.
COPY --chown=travis:travis . /home/travis/build/
RUN .travis/autotools-linux script