Skip to content

Commit b36b3b8

Browse files
committed
Start work on the container
1 parent 4721000 commit b36b3b8

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM ubuntu:latest
2+
3+
RUN apt-get update && apt-get install --no-install-recommends -y \
4+
ca-certificates \
5+
lib32gcc1 \
6+
net-tools \
7+
lib32stdc++6 \
8+
lib32z1 \
9+
lib32z1-dev \
10+
curl
11+
12+
RUN mkdir -p /home/daemon/steamcmd && \
13+
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - -C /home/daemon/steamcmd && \
14+
chown -R daemon:daemon /home/daemon
15+
16+
WORKDIR /home/daemon/steamcmd
17+
USER daemon
18+
19+
ADD scripts/steam.sh /home/daemon/steamcmd/steam.sh
20+
CMD ./steam.sh

crontab

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*/1 * * * * /scripts/steam.sh >> /var/log/steam.log 2>&1
2+
# An empty line is required at the end of this file for a valid cron file.
3+

scripts/docker-cmd.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
# start cron
4+
/usr/sbin/crond -f -l 8

scripts/steam.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login ${STEAM_USER} ${STEAM_PASS} +force_install_dir ./gigantic-game +app_update 327690 validate +quit
4+

0 commit comments

Comments
 (0)