diff --git a/Dockerfile b/Dockerfile index a2bdd21..d20f994 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,9 @@ ENV GSLT="" \ RUN apt-get update \ && apt-get install -y --no-install-recommends procps \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + && mkdir -p /home/steam/unturned \ + && chown -R steam:steam /home/steam WORKDIR /home/steam @@ -23,4 +25,6 @@ RUN chmod +x /entrypoint.sh EXPOSE 27015/udp EXPOSE 27016/udp +USER steam + ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 6a96fbe..697a054 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,7 +6,7 @@ SERVER_DIR="${INSTALL_DIR}/Servers/${SERVER_ID}/Server" echo ">>> Updating Unturned via SteamCMD..." mkdir -p "${INSTALL_DIR}" -/home/steam/steamcmd/steamcmd.sh \ +~/steamcmd/steamcmd.sh \ +force_install_dir "${INSTALL_DIR}" \ +login anonymous \ +app_update 1110390 validate \