2023-04-11 19:42:46 -05:00
|
|
|
FROM rust:alpine
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2024-11-11 16:05:20 -06:00
|
|
|
RUN apk add --update musl-dev openssl openssl-dev
|
2023-04-11 19:42:46 -05:00
|
|
|
|
|
|
|
COPY public/ public/
|
2024-11-11 16:05:20 -06:00
|
|
|
COPY data/ data/
|
2023-04-11 19:42:46 -05:00
|
|
|
COPY src/ src/
|
|
|
|
COPY Cargo.toml .
|
2024-11-11 16:05:20 -06:00
|
|
|
COPY Cargo.lock .
|
|
|
|
COPY Dioxus.toml .
|
|
|
|
COPY access_token.key .
|
2023-04-11 19:42:46 -05:00
|
|
|
|
2024-11-11 16:05:20 -06:00
|
|
|
ENV OPENSSL_NO_VENDOR=1
|
|
|
|
RUN cargo fetch && cargo install dioxus-cli --locked
|
|
|
|
RUN dx build --release
|
2023-04-11 19:42:46 -05:00
|
|
|
|
2024-11-11 16:05:20 -06:00
|
|
|
CMD ["dx", "serve", "--release"]
|