diff --git a/Dockerfile b/Dockerfile index 0b5939e..0190b79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,11 @@ FROM ekidd/rust-musl-builder:latest as builder WORKDIR /home/rust/src COPY Cargo.toml Cargo.toml -# https://github.com/emk/rust-musl-builder/issues/130 -RUN sed -i "s|edition = \"2021\"|edition = \"2018\"|" Cargo.toml RUN mkdir -p src/ RUN echo "fn main() {println!(\"failed to build\")}" > src/main.rs RUN cargo build --release RUN rm -f target/release/deps/rustypaste* COPY . . -# https://github.com/emk/rust-musl-builder/issues/130 -RUN sed -i "s|edition = \"2021\"|edition = \"2018\"|" Cargo.toml RUN cargo build --locked --release RUN mkdir -p build-out/ RUN cp target/x86_64-unknown-linux-musl/release/rustypaste build-out/