linky/Dockerfile
2023-10-29 02:36:20 -04:00

26 lines
543 B
Docker

FROM rust:1.73-buster as builder
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
WORKDIR /app
COPY --from=builder /build/target/release/linky /app/linky
RUN apt-get update && apt-get install libssl-dev -y
RUN mkdir /store
RUN touch /store/store.xmlfrag && touch /store/tmpfile.xmlfrag
COPY ./templates/ /app/templates
CMD [ "/app/linky", "/store/store.xmlfrag", "/store/tmpfile.xmlfrag" ]