diff --git a/Dockerfile b/Dockerfile index c39a43be..311d0af4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM ubuntu:20.04 ENV TZ=america/central +COPY tdb-dockerfile.toml $HOME/tdb.toml RUN \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone && \ apt-get update && apt-get install git curl build-essential -y && \ @@ -18,7 +19,7 @@ RUN \ $HOME/.cargo/bin/rustup self uninstall -y && \ cp -f target/release/tdb /usr/local/bin -CMD ["tdb"] +CMD ["tdb -c $HOME/tdb.toml"] EXPOSE 2003/tcp diff --git a/tdb-dockerfile.toml b/tdb-dockerfile.toml new file mode 100644 index 00000000..4cbefa2a --- /dev/null +++ b/tdb-dockerfile.toml @@ -0,0 +1,5 @@ +# This file is to be used by the docker container +[server] +host = "0.0.0.0" +port = 2003 +noart = false \ No newline at end of file