Add image for dioxus build
Some checks failed
Push Workflows / docker-build-dx (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled

This commit is contained in:
2026-06-14 23:36:05 -04:00
parent 92e1896fda
commit 45e4b83f9c
2 changed files with 69 additions and 0 deletions

36
Dockerfile.dx Normal file
View File

@@ -0,0 +1,36 @@
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
# Install dioxus-cli
RUN curl -sSL https://dioxus.dev/install.sh | bash
ENV DAISYUI_PATH=/opt/daisyui/daisyui/
ENV DAISYUI_THEME_PATH=/opt/daisyui/theme/
# Install DaisyUI bundles
RUN set -eux; \
mkdir -p $DAISYUI_PATH $DAISYUI_THEME_PATH; \
cd $DAISYUI_PATH; \
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.js; \
cd $DAISYUI_THEME_PATH; \
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui-theme.js
ENV LD_LIBRARY_PATH=/usr/local/lib