veloren/server-cli/Dockerfile

20 lines
655 B
Docker
Raw Normal View History

FROM debian:stable-slim
# SIGUSR1 causes veloren-server-cli to initiate a graceful shutdown
LABEL com.centurylinklabs.watchtower.stop-signal="SIGUSR1"
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
2020-03-22 12:44:32 +00:00
WORKDIR /opt
2020-07-28 15:48:31 +00:00
CMD [ "sh", "-c", "RUST_BACKTRACE=1 /opt/veloren-server-cli -b" ]