diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7fc9727 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM rust:1.86-slim AS build-env + +WORKDIR /build + +# since this is just a build env, simply copy everything in, no need to be picky +COPY . . + +# this builds a release binary and leaves the binary in /usr/local/cargo/bin/myapp +RUN cargo install --path . + +FROM alpine:3.21 + +COPY --from=build-env /usr/local/cargo/bin/containerspy /usr/bin/containerspy + +# for mounting config.json into +RUN mkdir /etc/containerspy + +ENTRYPOINT ["containerspy"]
\ No newline at end of file |
