From ba6d322da7fcaa3df8f91e0fa6e0268c15bc1782 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 3 Jan 2023 02:29:48 +0900 Subject: [PATCH 1/2] Set wasm-opt = false --- plume-front/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plume-front/Cargo.toml b/plume-front/Cargo.toml index 1acea938..bcde9165 100644 --- a/plume-front/Cargo.toml +++ b/plume-front/Cargo.toml @@ -4,6 +4,9 @@ version = "0.7.2" authors = ["Plume contributors"] edition = "2018" +[package.metadata.wasm-pack.profile.release] +wasm-opt = false + [lib] crate-type = ["cdylib"] From 302026feb9e9085bf4bd0d1b208469a67eb0d1f1 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 3 Jan 2023 02:30:37 +0900 Subject: [PATCH 2/2] Update Rust on building Docker image [skip ci] --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f6196e73..1c211321 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1-buster as builder +FROM rust:1 as builder RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ @@ -18,17 +18,17 @@ COPY script/wasm-deps.sh . RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh WORKDIR /app -COPY Cargo.toml Cargo.lock rust-toolchain ./ -RUN cargo install wasm-pack COPY . . +RUN echo nightly-2022-07-19 > rust-toolchain +RUN cargo install wasm-pack RUN chmod a+x ./script/plume-front.sh && sleep 1 && ./script/plume-front.sh RUN cargo install --path ./ --force --no-default-features --features postgres RUN cargo install --path plume-cli --force --no-default-features --features postgres RUN cargo clean -FROM debian:buster-slim +FROM debian:stable-slim RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \