-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2721ea8
commit 836b4df
Showing
2 changed files
with
20 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,46 @@ | ||
FROM cm2network/steamcmd | ||
FROM cm2network/steamcmd:latest | ||
|
||
ENV DOORSTOP_ENABLE=TRUE | ||
ENV DOORSTOP_INVOKE_DLL_PATH=/home/steam/valheim-dedicated-server/BepInEx/core/BepInEx.Preloader.dll | ||
ENV DOORSTOP_CORLIB_OVERRIDE_PATH=/home/steam/valheim-dedicated-server/unstripped_corlib | ||
ARG STEAM_APP_ID=892970 | ||
ARG SERVER_DIR=/home/steam/valheim-dedicated-server | ||
|
||
ENV LD_LIBRARY_PATH="/home/steam/valheim-dedicated-server/doorstop_libs:/home/steam/valheim-dedicated-server/linux64:$LD_LIBRARY_PATH" | ||
ENV LD_PRELOAD="/home/steam/valheim-dedicated-server/doorstop_libs/libdoorstop_x64.so:$LD_PRELOAD" | ||
|
||
ENV SteamAppID=892970 | ||
ENV DOORSTOP_ENABLE=TRUE \ | ||
DOORSTOP_INVOKE_DLL_PATH=${SERVER_DIR}/BepInEx/core/BepInEx.Preloader.dll \ | ||
DOORSTOP_CORLIB_OVERRIDE_PATH=${SERVER_DIR}/unstripped_corlib \ | ||
LD_LIBRARY_PATH="${SERVER_DIR}/doorstop_libs:${SERVER_DIR}/linux64:$LD_LIBRARY_PATH" \ | ||
SteamAppID=${STEAM_APP_ID} | ||
|
||
USER root | ||
|
||
WORKDIR / | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
RUN apt-get update && apt-get install -y \ | ||
libatomic1 \ | ||
libpulse-dev \ | ||
libpulse0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY entrypoint.sh . | ||
COPY --chown=steam:steam entrypoint.sh / | ||
|
||
RUN chmod +x entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
USER steam | ||
|
||
WORKDIR /home/steam/steamcmd | ||
|
||
RUN mkdir -p /home/steam/valheim-dedicated-server \ | ||
RUN mkdir -p ${SERVER_DIR} \ | ||
&& ./steamcmd.sh +@sSteamCmdForcePlatformType linux \ | ||
+force_install_dir /home/steam/valheim-dedicated-server \ | ||
+force_install_dir ${SERVER_DIR} \ | ||
+login anonymous \ | ||
+app_update 896660 validate \ | ||
+quit | ||
|
||
USER root | ||
|
||
WORKDIR /home/steam/valheim-dedicated-server | ||
|
||
COPY BepInEx/BepInExPack_Valheim/BepInEx/ ./BepInEx/ | ||
COPY BepInEx/BepInExPack_Valheim/doorstop_libs/ ./doorstop_libs/ | ||
|
||
RUN chown -R steam:steam BepInEx/ && \ | ||
chown -R steam:steam doorstop_libs/ && \ | ||
chmod +x doorstop_libs/libdoorstop_x64.so | ||
|
||
USER steam | ||
COPY --chown=steam:steam BepInEx/BepInExPack_Valheim/BepInEx/ ${SERVER_DIR}/BepInEx/ | ||
COPY --chown=steam:steam BepInEx/BepInExPack_Valheim/doorstop_libs/ ${SERVER_DIR}/doorstop_libs/ | ||
|
||
WORKDIR / | ||
|
||
EXPOSE 2456-2458/udp | ||
|
||
VOLUME ["/home/steam/Valheim"] | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters