FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libstdc++6 \
    && rm -rf /var/lib/apt/lists/*
WORKDIR /app
ENV HOME=/tmp
COPY LazySnek2Server.x86_64 LazySnek2Server.pck ./
RUN chmod 755 /app/LazySnek2Server.x86_64
USER nobody
EXPOSE 24772/udp
ENTRYPOINT ["/app/LazySnek2Server.x86_64", "--headless", "--", "--server"]

