mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
* Port resize to wasm * Expose resize algorithms * Lanczos3 working! * lol copy paste * Adding support for other resizers * Don’t track generated README * Cache wasm instance
19 lines
528 B
Docker
19 lines
528 B
Docker
FROM ubuntu
|
|
RUN apt-get update && \
|
|
apt-get install -qqy git build-essential cmake python2.7
|
|
RUN git clone --recursive https://github.com/WebAssembly/wabt /usr/src/wabt
|
|
RUN mkdir -p /usr/src/wabt/build
|
|
WORKDIR /usr/src/wabt/build
|
|
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/opt/wabt && \
|
|
make && \
|
|
make install
|
|
|
|
FROM rust
|
|
RUN rustup install nightly && \
|
|
rustup target add --toolchain nightly wasm32-unknown-unknown && \
|
|
cargo install wasm-pack
|
|
|
|
COPY --from=0 /opt/wabt /opt/wabt
|
|
ENV PATH="/opt/wabt/bin:${PATH}"
|
|
WORKDIR /src
|