From 2a194eb1924d66ee4698407bd13bb778d0e300bc Mon Sep 17 00:00:00 2001 From: Donald Knuth Date: Thu, 17 Feb 2022 20:43:55 -0500 Subject: [PATCH] Partially correct dockerfile --- Dockerfile | 2 +- README.md | 6 +++--- scripts/build.sh | 2 +- scripts/run.sh | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 809ab65..020b720 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN cargo build --release # Copy the binary into a new container for a smaller docker image FROM debian:buster-slim -COPY --from=build ./target/release/ruck / +COPY --from=build /ruck/target/release/ruck / USER root ENV RUST_LOG=info diff --git a/README.md b/README.md index f4ca539..1465e2c 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,19 @@ - https://kerkour.com/rust-symmetric-encryption-aead-benchmark/ - https://docs.rs/aes-gcm/latest/aes_gcm/ - - https://github.com/rust-lang/flate2-rs - https://crates.io/crates/async-compression - - https://pdos.csail.mit.edu/papers/chord:sigcomm01/chord_sigcomm.pdf - https://pdos.csail.mit.edu/6.824/schedule.html - https://flylib.com/books/en/2.292.1.105/1/ - https://en.wikipedia.org/wiki/Two_Generals%27_Problem +- https://kobzol.github.io/rust/ci/2021/05/07/building-rust-binaries-in-ci-that-work-with-older-glibc.html + ## Todo - [ ] Use tracing - [ ] Add progress bars - [ ] Exit happily when transfer is complete -- [ ] Compress files \ No newline at end of file +- [ ] Compress files diff --git a/scripts/build.sh b/scripts/build.sh index eda8514..dfceb4f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1 +1 @@ -docker build -t ruck .. \ No newline at end of file +docker build -t ruck . \ No newline at end of file diff --git a/scripts/run.sh b/scripts/run.sh index 7895090..5459a22 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1 +1 @@ -$ docker run -p 8080:3030 --rm --name ruck1 ruck \ No newline at end of file +docker run -p 8080:3030 --rm --name ruck1 ruck \ No newline at end of file