Update to Edition 2021 and fix docker build

This commit is contained in:
Aram 🍐 2022-06-25 11:12:23 -04:00
parent 75bad318f4
commit 00b45f8cb4
4 changed files with 7 additions and 6 deletions

View file

@ -1,10 +1,11 @@
FROM rust:1.55 as cargo-build
FROM rust:1.56 as cargo-build
WORKDIR /usr/src/onetun
COPY Cargo.toml Cargo.toml
# Placeholder to download dependencies and cache them using layering
RUN mkdir src/
RUN touch src/lib.rs
RUN echo "fn main() {println!(\"if you see this, the build broke\")}" > src/main.rs
RUN cargo build --release
RUN rm -f target/x86_64-unknown-linux-musl/release/deps/myapp*