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];