From 21b76d715ef425106223217e54559e4372792313 Mon Sep 17 00:00:00 2001 From: Miroito Date: Wed, 26 Apr 2023 20:50:13 +0200 Subject: [PATCH] cleanup: Client dockerfile --- client/Dockerfile | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index cc609d2..c5c9134 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -21,35 +21,14 @@ RUN rustup target add wasm32-unknown-unknown;\ # retrieve the src dir COPY . . -# RUN curl https://git.albv.org/alban/fast-insiders/archive/master.tar.gz | tar -xz - -# go to src dir -# WORKDIR /app/client # install perseus-cli RUN cargo install perseus-cli --version $PERSEUS_VERSION;\ perseus clean -# specify deps in app config -# RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" ./Cargo.toml \ -# && sed -i s"/perseus-size-opt = .*/perseus-size-opt = \"${PERSEUS_SIZE_OPT_VERSION}\"/" ./Cargo.toml \ -# && cat ./Cargo.toml -# -# # modify main.rs -# RUN sed -i s'/SizeOpts::default()/SizeOpts { wee_alloc: true, lto: true, opt_level: "z".to_string(), codegen_units: 1, enable_fluent_bundle_patch: false, }/' ./src/main.rs \ -# && cat ./src/main.rs -# # run plugin(s) to adjust app -# RUN perseus tinker - -# single-threaded perseus CLI mode required for low memory environments -#ENV PERSEUS_CLI_SEQUENTIAL=true - # deploy app RUN perseus deploy -# # go back to app dir -# WORKDIR /app - # download and unpack esbuild RUN curl -O https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-${ESBUILD_VERSION}.tgz \ && tar xf esbuild-linux-64-${ESBUILD_VERSION}.tgz \