From 9a7654806fee9f2e4b68d8a77ef8ed978e2cc89d Mon Sep 17 00:00:00 2001 From: Nils Bergmann Date: Wed, 5 Jan 2022 17:38:53 +0100 Subject: [PATCH] Rename build dir to cmake_build --- docker/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 962fad9b..98a9b93d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -32,13 +32,13 @@ ARG BUILD_THREADS=1 ARG BUILD_VERSION=171022 RUN echo "Build server" && \ - mkdir -p build && \ - cd build && \ + mkdir -p cmake_build && \ + cd cmake_build && \ sed -i -e "s/171022/${BUILD_VERSION}/g" ../CMakeVariables.txt && \ cmake .. && \ make -j $BUILD_THREADS -RUN unzip /build/resources/navmeshes.zip -d /build/build/res/maps +RUN unzip /build/resources/navmeshes.zip -d /build/cmake_build/res/maps FROM gcc:11 as runtime @@ -50,9 +50,9 @@ RUN --mount=type=cache,id=runtime-apt-cache,target=/var/cache/apt \ WORKDIR /app -COPY --from=build /build/build /app +COPY --from=build /build/cmake_build /app -RUN mkdir -p /build/build && ln -s /app/_deps /build/build/_deps +RUN mkdir -p /build/cmake_build && ln -s /app/_deps /build/cmake_build/_deps COPY docker/start_server.sh /start_server.sh