-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (24 loc) · 873 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
33
# reference
# https://github.com/joedwards32/CS2/blob/main/bullseye/Dockerfile
# https://steamcommunity.com/sharedfiles/filedetails/?id=590565473
# with the help of GPT-4
FROM cm2network/steamcmd:root
ENV STEAMAPPID 343050
ENV STEAMAPP dst
ENV STEAMAPPDIR "${HOMEDIR}/${STEAMAPP}-dedicated"
RUN set -x && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y libcurl4-gnutls-dev:i386 tmux
COPY entry.sh "${HOMEDIR}/entry.sh"
RUN chmod +x "${HOMEDIR}/entry.sh"
RUN mkdir -p ${STEAMAPPDIR}
RUN chown -R "${USER}:${USER}" "${HOMEDIR}/entry.sh" "${STEAMAPPDIR}"
USER ${USER}
WORKDIR ${HOMEDIR}
# create folder for server settings specified in runtime
RUN mkdir -p "${HOMEDIR}/.klei/DoNotStarveTogether"
# see readme
# RUN echo -e "your base location is ${HOMEDIR}\"
ENTRYPOINT ["bash", "entry.sh"]
# ENTRYPOINT [ "sleep", "infinity" ]