aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-29 00:50:12 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-29 00:50:12 +0300
commit517ccac210b70d8c02ee276d893e96d1cbb16e86 (patch)
tree5bb7daf1a9e4c205b7c5cae52e7368c355bdcd2e /.travis/Dockerfile
parentREADME: update badge labels (diff)
downloadwinapi-debug-517ccac210b70d8c02ee276d893e96d1cbb16e86.tar.gz
winapi-debug-517ccac210b70d8c02ee276d893e96d1cbb16e86.zip
Travis: multi-stage Docker builds
Diffstat (limited to '')
-rw-r--r--.travis/Dockerfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/.travis/Dockerfile b/.travis/Dockerfile
index 1973e9f..24cbb35 100644
--- a/.travis/Dockerfile
+++ b/.travis/Dockerfile
@@ -1,4 +1,6 @@
-FROM ubuntu:focal
+FROM ubuntu:focal AS base
+
+FROM base AS builder
RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends \
@@ -30,8 +32,12 @@ RUN ./cmake/boost/build/ci/travis.py \
--with-filesystem \
--with-program_options && \
./cmake/cmake/build/ci/travis.py \
- --install "$HOME/install" \
+ --install /opt/pdb-repo \
-- \
-D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/cmake/toolchains/mingw-w64-$platform.cmake" \
-D "BOOST_ROOT=$HOME/boost_1_65_0" \
-D "BOOST_LIBRARYDIR=$HOME/boost_1_65_0/stage/$platform/$configuration/lib"
+
+FROM base
+
+COPY --from=builder ["/opt/pdb-repo", "/opt/pdb-repo"]