diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..b6b7b38 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,13 @@ +# docker build . -f docker/Dockerfile --tag shellharden:latest + + +FROM rust:1.53.0-alpine AS build + +WORKDIR /src +COPY . . +RUN cargo build --release + + +FROM scratch +COPY --from=build /src/target/release/shellharden /shellharden +ENTRYPOINT ["/shellharden"]