linky/Dockerfile

26 lines
543 B
Docker
Raw Normal View History

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
FROM debian:buster
2023-10-27 22:20:49 -04:00
WORKDIR /app
COPY --from=builder /build/target/release/linky /app/linky
RUN apt-get update && apt-get install libssl-dev -y
2023-10-27 22:20:49 -04:00
RUN mkdir /store
2023-10-29 02:36:20 -04:00
RUN touch /store/store.xmlfrag && touch /store/tmpfile.xmlfrag
2023-10-27 22:20:49 -04:00
COPY ./templates/ /app/templates
2023-10-29 02:36:20 -04:00
CMD [ "/app/linky", "/store/store.xmlfrag", "/store/tmpfile.xmlfrag" ]