🐛 Don't build credentials into the Docker image

main
_ 2020-11-02 18:59:35 +00:00
parent ad79e4ed3c
commit aad8ffdedd
3 changed files with 2 additions and 3 deletions

View File

@ -1 +1,2 @@
/config
/target /target

View File

@ -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/src/git_version.rs /root/git_version.rs
COPY --from=build /usr/src/ptth_handlebars /root/ptth_handlebars COPY --from=build /usr/src/ptth_handlebars /root/ptth_handlebars
COPY ptth_relay.toml /root/ptth_relay.toml
WORKDIR /root WORKDIR /root
CMD ["./ptth_relay"] CMD ["./ptth_relay"]

View File

@ -14,7 +14,7 @@ async fn main () -> Result <(), Box <dyn Error>> {
use std::io::Read; use std::io::Read;
let config_file = { 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 f = File::open (config_file_path).expect (&format! ("Can't open {:?}", config_file_path));
let mut buffer = vec! [0u8; 4096]; let mut buffer = vec! [0u8; 4096];