mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
554a9a6806
* fix: more include changes * fix: remove dZoneManager from global include * fix: dDatabase * fix: dCommon * fix: object libs * fix: rebase * fix: bcrypt * wip: try simplified connector build * fix: update dockerfile * fix: mariadb C/C++ on apple * feat: Move scripts to CMAKE_MODULE_PATH * fix: dPropertyBehaviors * fix: macos? * fix: Dockerfile * fix: macos? * fix: macos? * fix: macos? * fix: macos? * fix: macos? * try: install_name_tool * fix not building on unix * fix include paths * Remove code changes Will fix in another PR. * format pass remove 2 more included directories. remove commented out code add status to messages * comments and format surround include directories with quotes remove commented out code remove debug messages * Update CMakeLists.txt --------- Co-authored-by: David Markowitz <EmosewaMC@gmail.com> Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
51 lines
1.4 KiB
Docker
51 lines
1.4 KiB
Docker
FROM gcc:12 as build
|
|
|
|
WORKDIR /app
|
|
|
|
RUN set -ex; \
|
|
apt-get update; \
|
|
apt-get install -y cmake
|
|
|
|
COPY . /app/
|
|
COPY --chmod=0500 ./build.sh /app/
|
|
|
|
RUN sed -i 's/MARIADB_CONNECTOR_COMPILE_JOBS__=.*/MARIADB_CONNECTOR_COMPILE_JOBS__=2/' /app/CMakeVariables.txt
|
|
|
|
RUN ./build.sh
|
|
|
|
FROM debian:12 as runtime
|
|
|
|
WORKDIR /app
|
|
|
|
RUN --mount=type=cache,id=build-apt-cache,target=/var/cache/apt \
|
|
apt update && \
|
|
apt install -y libssl3 libcurl4 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Grab libraries and load them
|
|
COPY --from=build /app/build/mariadbcpp/libmariadbcpp.so /usr/local/lib/
|
|
RUN ldconfig
|
|
|
|
# Server bins
|
|
COPY --from=build /app/build/*Server /app/
|
|
|
|
# Necessary suplimentary files
|
|
COPY --from=build /app/build/*.ini /app/configs/
|
|
COPY --from=build /app/build/vanity/*.* /app/vanity/*
|
|
COPY --from=build /app/build/navmeshes /app/navmeshes
|
|
COPY --from=build /app/build/migrations /app/migrations
|
|
COPY --from=build /app/build/*.dcf /app/
|
|
|
|
# backup of config and vanity files to copy to the host incase
|
|
# of a mount clobbering the copy from above
|
|
COPY --from=build /app/build/*.ini /app/default-configs/
|
|
COPY --from=build /app/build/vanity/*.* /app/default-vanity/*
|
|
|
|
# needed as the container runs with the root user
|
|
# and therefore sudo doesn't exist
|
|
ENV USE_SUDO_AUTH=0
|
|
ENV DLU_CONFIG_DIR=/app/configs/
|
|
|
|
COPY --chmod=0500 ./entrypoint.sh /app/
|
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|