2026-08-10 13:56:40 -04:00
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
|
2026-08-18 18:19:45 -04:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
|
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2026-08-25 17:14:33 -04:00
|
|
|
&& groupadd --system --gid 10001 straywild \
|
|
|
|
|
&& useradd --system --uid 10001 --gid straywild \
|
|
|
|
|
--home-dir /var/lib/straywild-server straywild \
|
|
|
|
|
&& install -d -o straywild -g straywild \
|
|
|
|
|
/opt/straywild-server /var/lib/straywild-server
|
2026-08-10 13:56:40 -04:00
|
|
|
|
2026-08-25 17:14:33 -04:00
|
|
|
COPY --chown=straywild:straywild \
|
|
|
|
|
dist/straywildServer.x86_64 \
|
|
|
|
|
dist/straywildServer.pck \
|
2026-08-11 10:37:03 -04:00
|
|
|
dist/BUILD_INFO \
|
2026-08-12 10:11:20 -04:00
|
|
|
dist/SOURCE-CODE.md \
|
2026-08-11 10:37:03 -04:00
|
|
|
dist/SHA256SUMS \
|
2026-08-25 17:14:33 -04:00
|
|
|
/opt/straywild-server/
|
|
|
|
|
COPY --chown=straywild:straywild \
|
|
|
|
|
config/server.cfg.example /etc/straywild-server.cfg
|
|
|
|
|
COPY --chown=straywild:straywild \
|
2026-08-12 10:11:20 -04:00
|
|
|
dist/licenses/ \
|
2026-08-25 17:14:33 -04:00
|
|
|
/opt/straywild-server/licenses/
|
2026-08-10 13:56:40 -04:00
|
|
|
|
2026-08-25 17:14:33 -04:00
|
|
|
RUN chmod 0555 /opt/straywild-server/straywildServer.x86_64 \
|
|
|
|
|
&& chmod 0444 /opt/straywild-server/straywildServer.pck \
|
|
|
|
|
/opt/straywild-server/BUILD_INFO \
|
|
|
|
|
/opt/straywild-server/SOURCE-CODE.md \
|
|
|
|
|
/opt/straywild-server/SHA256SUMS \
|
|
|
|
|
/etc/straywild-server.cfg \
|
|
|
|
|
&& chmod 0444 /opt/straywild-server/licenses/*
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
USER 10001:10001
|
2026-08-25 17:14:33 -04:00
|
|
|
WORKDIR /opt/straywild-server
|
|
|
|
|
VOLUME ["/var/lib/straywild-server"]
|
2026-08-10 13:56:40 -04:00
|
|
|
EXPOSE 7777/udp
|
|
|
|
|
|
2026-08-25 17:14:33 -04:00
|
|
|
ENTRYPOINT ["/opt/straywild-server/straywildServer.x86_64"]
|
|
|
|
|
CMD ["--", "--config=/etc/straywild-server.cfg"]
|