Skip to content

Created project zomboid server #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions project-zomboid/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM steamcmd

# Dear srcds, plz don't crash. We have brought you these offerings.
USER root
RUN dpkg --add-architecture i386; apt-get update; apt-get install -y libstdc++6:i386 libcurl4-gnutls-dev:i386

USER steam
RUN mkdir -p /steam/project-zomboid

WORKDIR /steam/steamcmd_linux
RUN ./steamcmd.sh +login anonymous +force_install_dir ../project-zomboid +app_update 380870 +quit

WORKDIR /steam/project-zomboid/
ADD start*.sh .

CMD ["./start-project-zomboid.sh"]
6 changes: 6 additions & 0 deletions project-zomboid/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Project Zomboid
## Quick Start
`docker run -it -p 16261-16262:16261-16262/udp -e "SERVER_NAME=Zomboid Server" --name project-zomboid project-zomboid`

## Info
You will need to go into the running container and input an admin password on the first run of the server
5 changes: 5 additions & 0 deletions project-zomboid/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

. ../common.sh

docker_build project-zomboid
7 changes: 7 additions & 0 deletions project-zomboid/start-project-zomboid.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [[ -z "${SERVER_NAME}" ]]; then
exec ./start-server.sh -servername $SERVER_NAME
else
exec ./start-server.sh
fi