init
rewrite of cdb_ui in dioxus rust. goal is to integrate into a single rust codebase
This commit is contained in:
commit
b3a96ed3e3
37 changed files with 9927 additions and 0 deletions
38
Containerfile
Normal file
38
Containerfile
Normal 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;"]
|
Loading…
Add table
Add a link
Reference in a new issue