36 lines
775 B
Docker
36 lines
775 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 --needed \
|
|
webkit2gtk-4.1 \
|
|
base-devel \
|
|
curl \
|
|
wget \
|
|
file \
|
|
openssl \
|
|
appmenu-gtk-module \
|
|
libappindicator-gtk3 \
|
|
librsvg \
|
|
xdotool tailwindcss-bin rustup && pacman -Scc --noconfirm
|
|
|
|
RUN rustup default nightly && rustup target add wasm32-unknown-unknown
|
|
|
|
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;"]
|