forked from BitR/empyrion-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.linux
38 lines (30 loc) · 1.29 KB
/
Dockerfile.linux
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
FROM ubuntu:focal
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN export DEBIAN_FRONTEND noninteractive && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y net-tools tar unzip curl xz-utils gnupg2 software-properties-common xvfb libc6:i386 locales && \
echo en_US.UTF-8 UTF-8 >> /etc/locale.gen && locale-gen && \
curl -s https://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
apt-get install -y wine-staging=5.7~focal wine-staging-i386=5.7~focal wine-staging-amd64=5.7~focal winetricks && \
rm -rf /var/lib/apt/lists/* && \
ln -s '/home/user/Steam/steamapps/common/Empyrion - Dedicated Server/' /server && \
useradd -m user
RUN export DEBIAN_FRONTEND noninteractive && apt-get update && apt-get install -y git
USER user
ENV HOME /home/user
WORKDIR /home/user
VOLUME /home/user/Steam
RUN curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
# Get's killed at the end
RUN ./steamcmd.sh +login anonymous +quit || :
USER root
RUN mkdir /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
EXPOSE 30000/udp
ADD messages.py /
ADD dedicated.yaml /
ADD adminconfig.yaml /
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]