diff --git a/Cargo.toml b/Cargo.toml index a220588..6ea34c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,20 +16,18 @@ tracing-subscriber = "0.3.18" url = "2.5.2" [profile.test] -opt-level = 0 +opt-level = 'z' debug = true [profile.dev] -opt-level = 1 +opt-level = 's' debug = true [profile.release] strip = true opt-level = 3 lto = "fat" -codegen-units = 1 -panic = "abort" -debug = false +panic = "unwind" [target.x86_64-unknown-linux-musl] rustflags = ["-C", "target-feature=+crt-static"] linker = "gcc" diff --git a/Dockerfile b/Dockerfile index cadb098..ebaf2ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,10 @@ FROM alpine:latest AS base -ENV PATH="/root/.cargo/bin:${PATH}" +# ENV PATH="/root/.cargo/bin:${PATH}" + ENV CARGO_NET_GIT_FETCH_WITH_CLI=true ENV CARGO_HTTP_MULTIPLEXING=false ENV RUST_TARGET=x86_64-unknown-linux-musl -ENV RUSTFLAGS="-C target-feature=+crt-static" -ENV CC="gcc" -ENV AR="ar" -ENV CFLAGS="-I/usr/include" -ENV LDFLAGS="-L/usr/lib" ENV PKG_CONFIG_ALLOW_CROSS=1 ENV OPENSSL_STATIC=1 ENV OPENSSL_DIR=/usr