cdb_client/Containerfile
2025-06-07 22:15:44 +02:00

38 lines
823 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
COPY nginx.conf /etc/nginx/conf.d/default.conf
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;"]