Files
linky/Dockerfile
T
2026-07-21 16:01:37 -04:00

27 lines
604 B
Docker

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