cenv/GS/steam/Dockerfile

23 lines
904 B
Docker
Raw Normal View History

FROM eoelab.org:1027/ben0i0d/cenv:base
2024-12-24 21:56:13 +08:00
# Configure environment
ENV USER=steam \
UID=1000 \
GID=100 \
SHELL=/bin/bash \
HOME="/home/steam"
RUN sed -i 's/main/main contrib non-free non-free-firmware/g' /etc/apt/sources.list.d/debian.sources && \
echo steam steam/question select "I AGREE" | debconf-set-selections && \
echo steam steam/license note '' | debconf-set-selections && \
dpkg --add-architecture i386 && \
apt-get update --yes && apt-get install --yes steamcmd ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
2024-12-24 21:56:13 +08:00
# Create user
useradd --no-log-init --create-home --shell /bin/bash --uid "${UID}" --no-user-group "${USER}" && \
# Create workspace(game_dir)
mkdir /workspace && chown -hR "${UID}":"${GID}" /workspace && \
ln -s /usr/games/steamcmd /usr/bin/steamcmd && \
steamcmd +login anonymous +quit
2024-12-24 21:56:13 +08:00
USER ${USER}