2024-04-29 22:48:53 +02:00
|
|
|
FROM rust:1.77.2 as builder
|
|
|
|
WORKDIR /athome/
|
|
|
|
RUN cargo install dioxus-cli@^0.5
|
|
|
|
RUN apt update && apt install nodejs npm -y && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN npm install -D tailwindcss
|
|
|
|
|
|
|
|
FROM builder
|
|
|
|
WORKDIR /athome/
|
|
|
|
COPY ./src/ ./src/
|
|
|
|
COPY ./assets/ ./assets/
|
|
|
|
COPY ./Cargo.toml ./Cargo.toml
|
|
|
|
COPY ./input.css ./input.css
|
|
|
|
COPY ./Dioxus.toml ./Dioxus.toml
|
|
|
|
COPY ./tailwind.config.js ./tailwind.config.js
|
|
|
|
RUN npx tailwindcss -i ./input.css -o ./assets/tailwind.css
|
|
|
|
RUN dx build --platform fullstack --release
|
2024-05-14 11:33:25 +02:00
|
|
|
ENTRYPOINT [ "./docs/athome" ]
|