Skip to content

Commit 7883a22

Browse files
committed
feat(Frontend): ⚡ optimize frontend wasm size
1 parent c96ae95 commit 7883a22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ COPY . .
1717
RUN --mount=type=cache,target=target
1818

1919
RUN mkdir -p .cargo \
20-
&& echo -e "[unstable]\nbuild-std = [\"std\", \"panic_abort\", \"core\", \"alloc\"]\nbuild-std-features = [\"panic_immediate_abort\"]" >> .cargo/config.toml
20+
&& echo "[unstable]\nbuild-std = [\"std\", \"panic_abort\", \"core\", \"alloc\"]\nbuild-std-features = [\"panic_immediate_abort\"]" >> .cargo/config.toml \
21+
&& rustup component add rust-src
2122

2223
ARG ARCH=x86_64
2324

@@ -42,4 +43,4 @@ ENV LEPTOS_SITE_ROOT=site
4243

4344
EXPOSE 8080
4445

45-
CMD ["/frontend"]
46+
CMD ["/frontend"]

0 commit comments

Comments
 (0)