mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Move ADD down to ease caching
This commit is contained in:
parent
df7a2ee9e5
commit
5b42edb80a
16
Dockerfile
16
Dockerfile
|
@ -1,9 +1,5 @@
|
||||||
FROM debian:8
|
FROM debian:8
|
||||||
|
|
||||||
WORKDIR /ddnet
|
|
||||||
|
|
||||||
ADD . /ddnet
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y mingw-w64 \
|
RUN apt-get update && apt-get install -y mingw-w64 \
|
||||||
wget \
|
wget \
|
||||||
git \
|
git \
|
||||||
|
@ -28,17 +24,21 @@ RUN wget https://cmake.org/files/v3.11/cmake-3.11.0-rc2-Linux-x86_64.sh && \
|
||||||
./cmake-3.11.0-rc2-Linux-x86_64.sh --skip-license --prefix=/usr/local
|
./cmake-3.11.0-rc2-Linux-x86_64.sh --skip-license --prefix=/usr/local
|
||||||
|
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
VOLUME /build
|
WORKDIR /ddnet
|
||||||
|
ADD . /ddnet
|
||||||
|
|
||||||
RUN printf '#!/bin/bash\n \
|
RUN printf '#!/bin/bash\n \
|
||||||
set -x\n \
|
set -x\n \
|
||||||
mkdir /build/linux && cd /build/linux\n \
|
mkdir /build/linux\n \
|
||||||
|
cd /build/linux\n \
|
||||||
pwd\n \
|
pwd\n \
|
||||||
cmake /ddnet && make\n \
|
cmake /ddnet && make\n \
|
||||||
mkdir /build/win64 && cd /build/win64\n \
|
mkdir /build/win64\n \
|
||||||
|
cd /build/win64\n \
|
||||||
pwd\n \
|
pwd\n \
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw64.toolchain /ddnet && make\n \
|
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw64.toolchain /ddnet && make\n \
|
||||||
mkdir /build/win32 && cd /build/win32\n \
|
mkdir /build/win32\n \
|
||||||
|
cd /build/win32\n \
|
||||||
pwd\n \
|
pwd\n \
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw32.toolchain /ddnet && make' \
|
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw32.toolchain /ddnet && make' \
|
||||||
>> build-all.sh
|
>> build-all.sh
|
||||||
|
|
Loading…
Reference in a new issue