20 lines
378 B
Docker
20 lines
378 B
Docker
FROM rust:alpine
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN apk add --update musl-dev openssl openssl-dev openssl-libs-static
|
|
|
|
COPY public/ public/
|
|
COPY data/ data/
|
|
COPY src/ src/
|
|
COPY Cargo.toml .
|
|
COPY Cargo.lock .
|
|
COPY Dioxus.toml .
|
|
COPY access_token.key .
|
|
|
|
ENV OPENSSL_NO_VENDOR=1
|
|
RUN cargo fetch && cargo install dioxus-cli --locked
|
|
RUN dx build --release
|
|
|
|
CMD ["./dist/info-werefox-cafe"]
|