-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make seperate docker images for ds2/ds3.
- Loading branch information
1 parent
73ea820
commit 3dc965d
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM ubuntu@sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2 AS build | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y g++ curl zip unzip tar binutils cmake git yasm libuuid1 uuid-dev uuid-runtime | ||
|
||
COPY ./ /build | ||
WORKDIR /build/Tools | ||
RUN ./generate_make_release.sh | ||
WORKDIR /build | ||
RUN cd intermediate/make && make -j$(nproc || echo 4) | ||
|
||
# Pull an old version because steamcmd has all kinds of fucked up its folder structure in latest. | ||
FROM steamcmd/steamcmd:latest@sha256:8b2511e03bb70483e32572957bcf2da3af19a4ab394d66176ee2228419834042 AS steam | ||
|
||
# Make steamcmd download steam client libraries so we can copy them later. | ||
RUN steamcmd +login anonymous +quit | ||
|
||
FROM ubuntu@sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2 AS runtime | ||
|
||
RUN echo "374320" > /opt/ds3os/steam_appid.txt | ||
|
||
RUN mkdir -p /opt/ds3os/Saved \ | ||
&& useradd -r -s /bin/bash -u 1000 ds3os \ | ||
&& chown ds3os:ds3os /opt/ds3os/Saved \ | ||
&& chown ds3os:ds3os /opt/ds3os \ | ||
&& chmod 755 /opt/ds3os/Saved | ||
&& chmod 755 /opt/ds3os | ||
&& apt update | ||
&& apt install -y --reinstall ca-certificates | ||
|
||
COPY --from=build /build/bin/x64_release/ /opt/ds3os/ | ||
COPY --from=steam /root/.local/share/Steam/steamcmd/linux64/steamclient.so /opt/ds3os/steamclient.so | ||
|
||
ENV LD_LIBRARY_PATH="/opt/ds3os" | ||
|
||
USER ds3os | ||
WORKDIR /opt/ds3os | ||
ENTRYPOINT /opt/ds3os/Server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters