diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-03 21:13:33 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-05 23:41:16 +0100 |
commit | 3851cfb652f1b2237738a49c106e703f0270ceee (patch) | |
tree | d760cc11853a8d56fc4cd4455f4eeba23685e07f /other/docker/autotools | |
parent | 8c0fd40356e4a7724b556e17b15b0d14f7d25b4d (diff) |
Add autotools build to localbuild docker images.
Diffstat (limited to 'other/docker/autotools')
-rw-r--r-- | other/docker/autotools/Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/other/docker/autotools/Dockerfile b/other/docker/autotools/Dockerfile new file mode 100644 index 00000000..9922a62b --- /dev/null +++ b/other/docker/autotools/Dockerfile | |||
@@ -0,0 +1,23 @@ | |||
1 | ################################################ | ||
2 | # autotools-linux | ||
3 | FROM localbuild/travis:1.0.0 | ||
4 | |||
5 | USER root | ||
6 | RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
7 | autoconf \ | ||
8 | automake \ | ||
9 | libtool \ | ||
10 | && apt-get clean \ | ||
11 | && rm -rf /var/lib/apt/lists/* | ||
12 | USER travis | ||
13 | |||
14 | # Copy minimal files to run "autotools-linux install", so we can avoid | ||
15 | # rebuilding nacl and other things when only source files change. | ||
16 | RUN mkdir -p /home/travis/build/c-toxcore /home/travis/cache | ||
17 | WORKDIR /home/travis/build/c-toxcore | ||
18 | COPY --chown=travis:travis c-toxcore/.travis/ /home/travis/build/c-toxcore/.travis/ | ||
19 | RUN .travis/autotools-linux install | ||
20 | |||
21 | # Now copy the rest of the sources and run the build. | ||
22 | COPY --chown=travis:travis . /home/travis/build/ | ||
23 | RUN .travis/autotools-linux script | ||