-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 1004 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (20 loc) · 1004 Bytes
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
FROM cm2network/steamcmd:root
LABEL org.opencontainers.image.source="https://github.com/Ekman/{{NAME}}"
LABEL org.opencontainers.image.authors="Niklas Ekman <nikl.ekman@gmail.com>"
ENV GAME_DIR="$HOMEDIR/game" \
CONFIG_DIR="$HOMEDIR/config" \
GAME_ID="896660" \
DEBIAN_FRONTEND="noninteractive"
EXPOSE 2456-2458/udp
RUN apt-get update \
&& apt-get install --yes --no-install-recommends --no-install-suggests tini gosu \
&& apt-get autoremove --yes --purge \
&& apt-get clean \
&& apt-get autoclean \
&& mkdir -p "$GAME_DIR" "$CONFIG_DIR" "$HOMEDIR/.config" \
&& chown -R "$USER":"$USER" "$GAME_DIR" "$CONFIG_DIR" "$HOMEDIR/.config"
ADD --chown="$USER":"$USER" scripts/docker-entrypoint.sh /
ADD --chown="$USER":"$USER" scripts/start-server.sh /
VOLUME [ "$GAME_DIR", "$CONFIG_DIR", "$HOMEDIR/steamcmd", "$HOMEDIR/.config" ]
# See: https://github.com/docker-library/official-images#init
ENTRYPOINT [ "tini", "-ve", "143", "--", "bash", "/docker-entrypoint.sh" ]