info-werefox-cafe/Dockerfile

20 lines
358 B
Docker
Raw Normal View History

FROM rust:alpine
WORKDIR /usr/src/app
2024-11-11 16:05:20 -06:00
RUN apk add --update musl-dev openssl openssl-dev
COPY public/ public/
2024-11-11 16:05:20 -06:00
COPY data/ data/
COPY src/ src/
COPY Cargo.toml .
2024-11-11 16:05:20 -06:00
COPY Cargo.lock .
COPY Dioxus.toml .
COPY access_token.key .
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
2024-11-11 16:05:20 -06:00
CMD ["dx", "serve", "--release"]