mirror of
https://github.com/AsgardEternal/SquadDocker.git
synced 2024-09-28 11:44:22 -05:00
fix: specify steam
user outside RUN
This commit is contained in:
parent
9b2892436e
commit
f7138afac6
@ -25,7 +25,6 @@ ENV GAMEPORT=7787 \
|
|||||||
SHELL [ "/bin/bash", "-c" ]
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
|
||||||
RUN <<__EOR__
|
RUN <<__EOR__
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-install-suggests --no-install-recommends \
|
apt-get install -y --no-install-suggests --no-install-recommends \
|
||||||
@ -34,11 +33,14 @@ apt-get install -y --no-install-suggests --no-install-recommends \
|
|||||||
gnupg=2.2.40-1.1
|
gnupg=2.2.40-1.1
|
||||||
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
__EOR__
|
||||||
|
|
||||||
# HACK: Hard coding the user to be "steam" is not great, but I'm too lazy to really do this the
|
# HACK: Hard coding the user to be "steam" is not great, but I'm too lazy to really do this the
|
||||||
# *right* way (which is making sure the USER ends up as steam via an entry point up in the steamcmd
|
# *right* way (which is making sure the USER ends up as steam via an entry point up in the steamcmd
|
||||||
# image). For now, this will have to do.
|
# image). For now, this will have to do.
|
||||||
su steam -c "/bin/bash" <<-__EOS__
|
USER steam
|
||||||
|
|
||||||
|
RUN <<__EOR__
|
||||||
if (( use_squad_beta == 1 )); then
|
if (( use_squad_beta == 1 )); then
|
||||||
# Install Squad from the Beta branch
|
# Install Squad from the Beta branch
|
||||||
"${STEAM_CMD_INSTALL_DIR}/steamcmd.sh" \
|
"${STEAM_CMD_INSTALL_DIR}/steamcmd.sh" \
|
||||||
@ -56,8 +58,6 @@ else
|
|||||||
+app_update ${steam_app_id} validate \
|
+app_update ${steam_app_id} validate \
|
||||||
+quit
|
+quit
|
||||||
fi
|
fi
|
||||||
__EOS__
|
|
||||||
|
|
||||||
__EOR__
|
__EOR__
|
||||||
|
|
||||||
FROM build-squad AS mods
|
FROM build-squad AS mods
|
||||||
|
Loading…
Reference in New Issue
Block a user