xssbook/deployments/docker/Dockerfile

20 lines
421 B
Text
Raw Permalink Normal View History

2023-01-28 18:14:53 +00:00
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
2023-02-01 03:21:19 +00:00
RUN mkdir ./public/image/custom
VOLUME ./public/image/custom
2023-01-28 18:14:53 +00:00
EXPOSE 8080
CMD ["/usr/local/bin/xssbook"]