rewrite of cdb_ui in dioxus rust. goal is to integrate into a single rust codebase
This commit is contained in:
JMARyA 2025-05-25 20:03:42 +02:00
commit b3a96ed3e3
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
37 changed files with 9927 additions and 0 deletions

38
Containerfile Normal file
View file

@ -0,0 +1,38 @@
FROM git.hydrar.de/navos/navos:latest as builder
RUN pacman-key --init && pacman-key --populate archlinux && pacman-key --populate navos && pacman -Sy --noconfirm
RUN pacman -S --noconfirm tailwindcss-bin rustup
RUN pacman -S --noconfirm --needed \
webkit2gtk-4.1 \
base-devel \
curl \
wget \
file \
openssl \
appmenu-gtk-module \
libappindicator-gtk3 \
librsvg \
xdotool
RUN rustup default nightly
RUN cargo install dioxus-cli
COPY . /app
WORKDIR /app
RUN /root/.cargo/bin/dx bundle --platform web
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/target/dx/cdb_client/release/web/public /usr/share/nginx/html
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]