From 39e0a1356f1add73d21453e4bbc5a504dd0d0e34 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 21 Jan 2025 16:38:42 +0100 Subject: [PATCH] added Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..605662f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM alpine:latest as build + +RUN apk add --update zip bash file curl + +ADD xrsh.com / + +RUN curl -o assimilate https://cosmo.zip/pub/cosmos/bin/assimilate && \ + chmod +x assimilate && \ + ./assimilate /xrsh.com && \ + file /xrsh.com + + +# normalize the binary to ELF +#RUN sh /xrsh.com --assimilate && file /xrsh.com + +FROM scratch + +COPY --from=build /xrsh.com / +CMD ["/xrsh.com"]