From aad8ffdedd6aa34197d9c545e075934539907da6 Mon Sep 17 00:00:00 2001 From: _ <> Date: Mon, 2 Nov 2020 18:59:35 +0000 Subject: [PATCH] :bug: Don't build credentials into the Docker image --- .dockerignore | 1 + Dockerfile | 2 -- src/bin/ptth_relay.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index ea8c4bf..a26b144 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ +/config /target diff --git a/Dockerfile b/Dockerfile index 006c8f6..52b3318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,6 @@ COPY --from=build /usr/src/target/release/ptth_relay /root COPY --from=build /usr/src/src/git_version.rs /root/git_version.rs COPY --from=build /usr/src/ptth_handlebars /root/ptth_handlebars -COPY ptth_relay.toml /root/ptth_relay.toml - WORKDIR /root CMD ["./ptth_relay"] diff --git a/src/bin/ptth_relay.rs b/src/bin/ptth_relay.rs index 392e90b..4c57502 100644 --- a/src/bin/ptth_relay.rs +++ b/src/bin/ptth_relay.rs @@ -14,7 +14,7 @@ async fn main () -> Result <(), Box > { use std::io::Read; let config_file = { - let config_file_path = "ptth_relay.toml"; + let config_file_path = "config/ptth_relay.toml"; let mut f = File::open (config_file_path).expect (&format! ("Can't open {:?}", config_file_path)); let mut buffer = vec! [0u8; 4096];