cba to fix the reqwest get title issue in docker production
This commit is contained in:
+6
-4
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user