rewrite of cdb_ui in dioxus rust. goal is to integrate into a single rust codebase
38 lines
731 B
Docker
38 lines
731 B
Docker
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;"]
|