feat(cv): Updated CV to 2025
Some checks failed
Build Docker Image / Build (push) Has been cancelled
Some checks failed
Build Docker Image / Build (push) Has been cancelled
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,20 +1,21 @@
|
||||
FROM rust:1.80.1 AS dioxus
|
||||
FROM rust:1.84.0 AS dioxus
|
||||
RUN cargo install dioxus-cli@^0.6
|
||||
|
||||
FROM dioxus AS builder
|
||||
WORKDIR /athome/
|
||||
RUN apt-get update && apt-get install nodejs npm libssl-dev musl-tools -y && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && apt install libwebkit2gtk-4.1-dev build-essential curl npm \
|
||||
wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev -y\
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN npm install -D tailwindcss
|
||||
COPY ./Cargo.toml ./Cargo.toml
|
||||
COPY ./Dioxus.toml ./Dioxus.toml
|
||||
COPY ./input.css ./input.css
|
||||
COPY ./tailwind.config.js ./tailwind.config.js
|
||||
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 web --release
|
||||
RUN dx bundle --platform web
|
||||
|
||||
FROM dioxus AS runner
|
||||
WORKDIR /app/
|
||||
COPY --from=builder /athome/docs/ ./docs/
|
||||
CMD [ "./docs/athome" ]
|
||||
COPY --from=builder /athome/target/dx/athome/release/web/ ./
|
||||
CMD [ "./server" ]
|
||||
|
||||
Reference in New Issue
Block a user