added Dockerfile
This commit is contained in:
parent
5f3622e2bb
commit
39e0a1356f
1 changed files with 19 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -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"]
|
Loading…
Add table
Reference in a new issue