trunk
trunk copied to clipboard
Consider adding a docker file
It may be a good idea to add a simple Dockerfile to the repo, that has trunk preinstalled two major benefits here.
- Faster to not have to build trunk for a ci run
- You don't download rust-std for
wasm32-unknown-unknown
You can use the ghcr.io or dockerhub.io to store the image.
FROM rust:slim
# Install dependencies
RUN apt-get update && apt-get install -y pkg-config
# Add wasm target
RUN rustup target add wasm32-unknown-unknown
# Install trunk
RUN cargo install trunk
# Set working directory
WORKDIR /app
consider my use case, I'm building cicd for a repo that has a leptos project. I need to produce a zip with the static assets.
True, what would be a great idea.