CICD-Image/Dockerfile
Ethan Girouard 21c8da6eaa
Some checks failed
Push Workflows / docker-build (push) Failing after 7m25s
Update cargo-leptos to 0.2.26
2025-02-02 15:35:24 -05:00

36 lines
840 B
Docker

FROM gitea/runner-images:ubuntu-latest
WORKDIR /app
# Install a few dependencies
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
clang \
build-essential; \
rm -rf /var/lib/apt/lists/*
# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Include Rust binaries in PATH
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup default nightly
RUN rustup target add wasm32-unknown-unknown
RUN cargo install cargo-leptos@0.2.26
# Install ImageMagick
RUN cd / && \
wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-38.tar.gz && \
tar xf 7.1.1-38.tar.gz && \
rm 7.1.1-38.tar.gz && \
cd ImageMagick-7.1.1-38 && \
./configure && \
make install -j $(nproc) && \
cd .. && \
rm -rf ImageMagick-7.1.1-38
ENV LD_LIBRARY_PATH=/usr/local/lib