diff options
| author | Hazel Atkinson <yellowsink@riseup.net> | 2025-04-08 18:13:51 +0100 |
|---|---|---|
| committer | Hazel Atkinson <yellowsink@riseup.net> | 2025-04-09 16:38:44 +0100 |
| commit | eed19a93a29624ae0332d46a04cdc940b97ec8a0 (patch) | |
| tree | 4abb09dca3f690c7849d4b406983301e637379ec /Dockerfile | |
| parent | 029a99ebcc2d9f4baab054d7262ebdcc45181b05 (diff) | |
| download | containerspy-eed19a93a29624ae0332d46a04cdc940b97ec8a0.tar.gz containerspy-eed19a93a29624ae0332d46a04cdc940b97ec8a0.tar.bz2 containerspy-eed19a93a29624ae0332d46a04cdc940b97ec8a0.zip | |
add dockerfile & improve readme
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 |
