🐛 Don't build credentials into the Docker image
parent
ad79e4ed3c
commit
aad8ffdedd
|
@ -1 +1,2 @@
|
|||
/config
|
||||
/target
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -14,7 +14,7 @@ async fn main () -> Result <(), Box <dyn Error>> {
|
|||
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];
|
||||
|
|
Loading…
Reference in New Issue