veloren/server-cli/Dockerfile
Marcel 342e46afcb Install meta package librust-backtrace+libbacktrace-dev in debian, this might fix the problem that we dont have server backtraces.
According to its documentation its specifically tailed down to deliver everything for rust backtrace crate:
https://packages.debian.org/buster/librust-backtrace+libbacktrace-dev
The official requierement would be install `cc` and `ar`, where `ar` is in binutils, and `cc` seems to be in gcc-8 or a subpackage of it. Both would requiere about 100MB additionally for backtraces, while this package should requiere additional 8MB
2020-04-09 11:22:34 +00:00

17 lines
568 B
Docker

FROM debian:stable-slim
ARG PROJECTNAME=server-cli
# librust-backtrace+libbacktrace-dev = backtrace functionality
RUN apt-get update; export DEBIAN_FRONTEND=noninteractive; \
apt-get install -y --no-install-recommends --assume-yes \
librust-backtrace+libbacktrace-dev; \
rm -rf /var/lib/apt/lists/*;
COPY ./veloren-server-cli /opt/veloren-server-cli
COPY ./assets/common /opt/assets/common
COPY ./assets/world /opt/assets/world
WORKDIR /opt
CMD [ "sh", "-c", "RUST_LOG=info,common=debug,common::net=info RUST_BACKTRACE=1 /opt/veloren-server-cli" ]