this repo has no description
at trunk 35 lines 1.2 kB view raw
1FROM caddy as web 2COPY . . 3RUN echo ":8000" > /etc/caddy/Caddyfile 4RUN echo "rewrite /repl /util/repl.html" >> /etc/caddy/Caddyfile 5RUN echo "rewrite /compilerepl /util/compilerepl.html" >> /etc/caddy/Caddyfile 6RUN echo "rewrite /style.css /util/style.css" >> /etc/caddy/Caddyfile 7RUN echo "log" >> /etc/caddy/Caddyfile 8RUN echo "file_server" >> /etc/caddy/Caddyfile 9 10FROM alpine:latest as build 11RUN printf -- '-m\nscrapscript\n...' > .args 12RUN wget https://cosmo.zip/pub/cosmos/bin/assimilate 13RUN wget https://cosmo.zip/pub/cosmos/bin/ape-x86_64.elf 14RUN wget https://cosmo.zip/pub/cosmos/bin/python 15RUN wget https://cosmo.zip/pub/cosmos/bin/zip 16RUN chmod +x assimilate 17RUN chmod +x ape-x86_64.elf 18RUN chmod +x python 19RUN chmod +x zip 20RUN mkdir Lib 21COPY scrapscript.py Lib/ 22COPY compiler.py Lib/ 23COPY runtime.c Lib/ 24COPY cli.c Lib/ 25RUN ./ape-x86_64.elf ./python -m compileall -b Lib/scrapscript.py Lib/compiler.py 26RUN mv python scrapscript.com 27RUN ./ape-x86_64.elf ./zip -r scrapscript.com Lib .args 28RUN ./ape-x86_64.elf ./assimilate ./scrapscript.com 29RUN echo "Testing..." 30RUN ./scrapscript.com apply "1+2" 31 32# Set up the container 33FROM scratch as main 34COPY --from=build scrapscript.com . 35ENTRYPOINT ["./scrapscript.com"]