-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
39 lines (27 loc) · 984 Bytes
/
Copy pathdockerfile
File metadata and controls
39 lines (27 loc) · 984 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
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:22.04
ENV STEAM_ACCOUNT account
ENV STEAM_PASSWORD password
ENV MOD_IDS ()
ENV UID 1000
ENV GID 1000
# install dependencies
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoremove -y
RUN apt install software-properties-common lib32gcc-s1 libvorbisfile3 wget libstdc++6 -y
RUN groupadd -g $GID starbound \
&& useradd -u $UID starbound -g starbound
RUN mkdir -p /starbound \
&& mkdir -p /steamcmd
ADD install.sh /steamcmd/install.sh
RUN chown -R starbound:starbound /starbound \
&& chown -R starbound:starbound /steamcmd
VOLUME ["/starbound"]
USER starbound:starbound
# download and install steamcmd
RUN cd /steamcmd \
&& wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz \
&& tar -zxvf steamcmd_linux.tar.gz \
&& rm steamcmd_linux.tar.gz \
&& chmod u+x ./steamcmd.sh
RUN chmod u+x /steamcmd/install.sh
RUN touch /steamcmd/installmods.txt
ENTRYPOINT ["steamcmd/install.sh"]