Rename build dir to cmake_build

This commit is contained in:
Nils Bergmann 2022-01-05 17:38:53 +01:00
parent 72e2d24c67
commit 9a7654806f
No known key found for this signature in database
GPG Key ID: 5FAEC08EE1DC2DF9

View File

@ -32,13 +32,13 @@ ARG BUILD_THREADS=1
ARG BUILD_VERSION=171022 ARG BUILD_VERSION=171022
RUN echo "Build server" && \ RUN echo "Build server" && \
mkdir -p build && \ mkdir -p cmake_build && \
cd build && \ cd cmake_build && \
sed -i -e "s/171022/${BUILD_VERSION}/g" ../CMakeVariables.txt && \ sed -i -e "s/171022/${BUILD_VERSION}/g" ../CMakeVariables.txt && \
cmake .. && \ cmake .. && \
make -j $BUILD_THREADS 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 FROM gcc:11 as runtime
@ -50,9 +50,9 @@ RUN --mount=type=cache,id=runtime-apt-cache,target=/var/cache/apt \
WORKDIR /app 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 COPY docker/start_server.sh /start_server.sh