cba to fix the reqwest get title issue in docker production

This commit is contained in:
h
2023-10-28 17:42:34 -04:00
parent 5b97755da8
commit ea734d7809
5 changed files with 49 additions and 11 deletions
+6 -4
View File
@@ -1,4 +1,4 @@
FROM rust:1.73.0 as builder
FROM rust:1.73-buster as builder
WORKDIR /build
@@ -8,16 +8,18 @@ COPY ./Cargo.toml /build/Cargo.toml
RUN rustup update nightly && rustup default nightly && \
cargo clean && cargo build --release
FROM debian:buster-slim
FROM debian:buster
WORKDIR /app
COPY --from=builder /build/target/release/linky /app/linky
RUN mkdir /app/service
RUN apt-get update && apt-get install libssl-dev -y
RUN mkdir /store
RUN touch /store/store.xmlfrag
COPY ./templates/ /app/templates
CMD [ "/app/linky /store/store.xmlfrag" ]
CMD [ "/app/linky", "/store/store.xmlfrag" ]