Files
palworld-server-docker/Dockerfile
Twinki 15b5c6881d Add ADMIN_PASSWORD env variable
# Motivations
Being able to configure the admin password would be quite helpful

# Modifications
- Add `ADMIN_PASSWORD` to the list of environment variables, which adds `--adminpassword` to the server arguments
2024-01-19 16:05:51 -05:00

26 lines
616 B
Docker

FROM cm2network/steamcmd:root
LABEL maintainer="thijs@loef.dev"
RUN apt-get update && apt-get install -y --no-install-recommends \
xdg-user-dirs=0.17-2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PORT=8211 \
PLAYERS=16 \
MULTITHREADING=false \
COMMUNITY=false \
PUBLIC_IP= \
PUBLIC_PORT= \
SERVER_PASSWORD= \
SERVER_NAME= \
ADMIN_PASSWORLD= \
UPDATE_ON_BOOT=true
COPY ./scripts/* /home/steam/server/
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh
WORKDIR /home/steam/server
EXPOSE ${PORT}
ENTRYPOINT ["/home/steam/server/init.sh"]