2023-10-28 17:42:34 -04:00
|
|
|
FROM rust:1.73-buster as builder
|
2023-10-27 22:20:49 -04:00
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
COPY ./src/ /build/src
|
|
|
|
COPY ./Cargo.toml /build/Cargo.toml
|
|
|
|
|
|
|
|
RUN rustup update nightly && rustup default nightly && \
|
|
|
|
cargo clean && cargo build --release
|
|
|
|
|
2023-10-28 17:42:34 -04:00
|
|
|
FROM debian:buster
|
2023-10-27 22:20:49 -04:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY --from=builder /build/target/release/linky /app/linky
|
|
|
|
|
2023-10-28 17:42:34 -04:00
|
|
|
RUN apt-get update && apt-get install libssl-dev -y
|
2023-10-27 22:20:49 -04:00
|
|
|
|
|
|
|
RUN mkdir /store
|
|
|
|
|
2023-10-28 17:42:34 -04:00
|
|
|
RUN touch /store/store.xmlfrag
|
|
|
|
|
2023-10-27 22:20:49 -04:00
|
|
|
COPY ./templates/ /app/templates
|
|
|
|
|
2023-10-28 17:42:34 -04:00
|
|
|
CMD [ "/app/linky", "/store/store.xmlfrag" ]
|