Skip to content

Commit

Permalink
Load as binary instead of text
Browse files Browse the repository at this point in the history
We only need the binary form.
  • Loading branch information
rafaelfranca committed Mar 19, 2024
1 parent bca3e0e commit 4826c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
let cli = Cli::parse();

// read the content of the DOCKERFILE and store it in a variable
let dockerfile = include_str!("../Dockerfile");
let dockerfile = include_bytes!("../Dockerfile");

let ruby_version = cli.ruby_version.unwrap();
let rails_version = cli.rails_version.unwrap();
Expand All @@ -26,7 +26,7 @@ fn main() {
.expect("Failed to execute process");

let stdin = child.stdin.as_mut().expect("Failed to open stdin");
stdin.write_all(dockerfile.as_bytes()).unwrap();
stdin.write_all(dockerfile).unwrap();

let status = child.wait().expect("failed to wait on child");

Expand Down

0 comments on commit 4826c31

Please sign in to comment.