forked from RE-SS3D/SS3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (14 loc) · 732 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (14 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Runs a pre-built SS3D dedicated server (StandaloneLinux64, Server subtarget).
# The binary is not compiled inside this image - build it first (Unity Editor or
# the "Build Dedicated Server" CI job, see .github/workflows/main.yml) and pass
# its output directory as the build context, e.g.:
# docker build -t ss3d-server -f Dockerfile build/StandaloneLinux64
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates libc6 libstdc++6 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /server
COPY . /server/
RUN chmod +x /server/*.x86_64
EXPOSE 2222/udp
ENTRYPOINT ["/bin/sh", "-c", "exec /server/*.x86_64 -batchmode -nographics -serveronly -port=2222 -logFile /dev/stdout"]