🚀 Update Dockerfile to take the new code organization into account
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -2,19 +2,21 @@ FROM rust:latest AS builder
|
|||||||
|
|
||||||
WORKDIR /usr/src/beau-gosse-du-92
|
WORKDIR /usr/src/beau-gosse-du-92
|
||||||
|
|
||||||
COPY ./fonts ./fonts
|
|
||||||
COPY ./images ./images
|
|
||||||
|
|
||||||
|
|
||||||
COPY ./Dioxus.toml .
|
|
||||||
COPY Cargo.* .
|
|
||||||
COPY ./build.rs .
|
|
||||||
COPY ./src ./src
|
|
||||||
|
|
||||||
RUN cargo install dioxus-cli
|
RUN cargo install dioxus-cli
|
||||||
RUN dx build -r --platform web
|
|
||||||
|
COPY Cargo.* .
|
||||||
|
COPY ./src ./src
|
||||||
|
COPY ./public ./public
|
||||||
|
COPY ./Dioxus.toml .
|
||||||
|
COPY ./build.rs .
|
||||||
|
COPY ./.cargo ./.cargo
|
||||||
|
|
||||||
|
RUN ln -s ./public/index.html ./index.html \
|
||||||
|
&& dx build -r --platform web
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:mainline-alpine-slim
|
FROM nginx:mainline-alpine-slim
|
||||||
|
|
||||||
COPY --from=builder /usr/src/beau-gosse-du-92/dist /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
|
|
||||||
|
COPY --from=builder /usr/src/beau-gosse-du-92/dist .
|
||||||
|
Reference in New Issue
Block a user