-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·58 lines (45 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM steamcmd/steamcmd:ubuntu-24
LABEL maintainer="silent@silentmecha.co.za"
ARG PUID=1001
# Set environment variables
ENV USER steam
ENV BACKUP_DAILY_LIM 5
ENV BACKUP_HOURLY_LIM 5
# Create user for the server
# This also creates the home directory we later need
RUN set -x \
&& useradd -u "${PUID}" -m "${USER}"
# Update the repository and install SteamCMD along with needed packages then
# Clean TMP, apt-get cache and other stuff to make the image smaller
ARG DEBIAN_FRONTEND=noninteractive
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
nano \
curl \
wget \
jq \
tzdata \
rename \
wine-stable \
wine32 \
wine64 \
libwine \
libwine:i386 \
xvfb \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# Change home directory later to fix symbolic link issues
ENV HOME "/home/${USER}"
# Set working directory
WORKDIR ${HOME}
COPY ./src/ssq ${HOME}/ssq
COPY ./src/healthcheck.sh ${HOME}/healthcheck.sh
RUN set -x \
&& chown ${USER}:${USER} "${HOME}/ssq" "${HOME}/healthcheck.sh" \
&& chmod +x "${HOME}/ssq" "${HOME}/healthcheck.sh"
USER ${USER}
# Update SteamCMD and verify latest version
RUN steamcmd +quit
ENTRYPOINT []
CMD ["/bin/bash"]