-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (40 loc) · 1.36 KB
/
Copy pathDockerfile
File metadata and controls
54 lines (40 loc) · 1.36 KB
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
FROM debian:stable-slim AS fetcher
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies
RUN apt-get update \
&& apt-get install -y curl lib32gcc-s1
# Add steam user
RUN useradd -m -u 1000 steam
USER steam
# Download and extract SteamCMD
RUN mkdir -p /home/steam/steamcmd \
&& curl -s https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar -vxz -C /home/steam/steamcmd
# fetch server
RUN mkdir -p /home/steam/avorion-server \
&& /home/steam/steamcmd/steamcmd.sh \
+login anonymous \
+force_install_dir /home/steam/avorion-server \
+app_update 565060 validate \
+quit
FROM debian:stable-slim
LABEL org.opencontainers.image.url="https://gitlab.com/luckyturtledev/docker-avorionldx/container_registry"
LABEL org.opencontainers.image.title="Docker image for Avorion's dedicated server"
LABEL org.opencontainers.image.source="https://gitlab.com/LuckyTurtleDev/docker-avorion"
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies
RUN apt-get update \
&& apt-get install -y ca-certificates
# Add steam user
RUN useradd -m -u 1000 steam
USER steam
# install server
RUN mkdir -p /home/steam/avorion-server
COPY --from=fetcher /home/steam/avorion-server /home/steam/avorion-server
# Ports required
EXPOSE 27000
EXPOSE 27000/udp
EXPOSE 27003
EXPOSE 27003/udp
EXPOSE 27020
EXPOSE 27021
CMD ["/home/steam/avorion-server/server.sh"]