18 lines
360 B
Text
18 lines
360 B
Text
|
FROM rust:1.67-buster as builder
|
||
|
WORKDIR /usr/src/xssbook
|
||
|
|
||
|
COPY ./Cargo.toml ./Cargo.toml
|
||
|
COPY ./Cargo.lock ./Cargo.lock
|
||
|
COPY ./src ./src
|
||
|
RUN cargo install --path .
|
||
|
|
||
|
FROM debian:buster-slim
|
||
|
|
||
|
COPY --from=builder /usr/local/cargo/bin/xssbook /usr/local/bin/xssbook
|
||
|
|
||
|
RUN mkdir /data
|
||
|
WORKDIR /data
|
||
|
COPY ./public ./public
|
||
|
EXPOSE 8080
|
||
|
|
||
|
CMD ["/usr/local/bin/xssbook"]
|