first
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
FROM rust:1.73.0 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-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /build/target/release/linky /app/linky
|
||||
|
||||
RUN mkdir /app/service
|
||||
|
||||
RUN mkdir /store
|
||||
|
||||
COPY ./templates/ /app/templates
|
||||
|
||||
CMD [ "/app/linky /store/store.xmlfrag" ]
|
||||
Reference in New Issue
Block a user