-
-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathDockerfile
32 lines (26 loc) · 759 Bytes
/
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
FROM cm2network/steamcmd:root
LABEL maintainer="[email protected]"
RUN apt-get update && apt-get install -y --no-install-recommends \
xdg-user-dirs=0.17-2 \
procps=2:3.3.17-5 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PORT=8211 \
PUID=1000 \
PGID=1000 \
PLAYERS=16 \
MULTITHREADING=false \
COMMUNITY=false \
PUBLIC_IP= \
PUBLIC_PORT= \
SERVER_PASSWORD= \
SERVER_NAME= \
ADMIN_PASSWORD= \
UPDATE_ON_BOOT=true
COPY ./scripts/* /home/steam/server/
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh
WORKDIR /home/steam/server
HEALTHCHECK --start-period=5m \
CMD pgrep "PalServer-Linux" > /dev/null || exit 1
EXPOSE ${PORT}
ENTRYPOINT ["/home/steam/server/init.sh"]