mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Significantly speeds up `npm run build:image` commands (as they don't need to compile anything anymore) and slightly reduces size of Docker images: - `squoosh-rotate`: 1.87GB -> 1.84GB - `squoosh-resize`: 2.02GB -> 1.85GB - `squoosh-hqx`: 2.06GB -> 1.9GB
9 lines
256 B
Docker
9 lines
256 B
Docker
FROM rust
|
|
RUN rustup target add wasm32-unknown-unknown
|
|
|
|
RUN mkdir /opt/wabt && \
|
|
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.11/wabt-1.0.11-linux.tar.gz | tar -xzf - -C /opt/wabt --strip 1
|
|
|
|
ENV PATH="/opt/wabt:${PATH}"
|
|
WORKDIR /src
|