mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Rename build dir to cmake_build
This commit is contained in:
parent
72e2d24c67
commit
9a7654806f
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user