Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324# Set things upFROM alpine:latest as buildRUN apk add clang python3ARG VER=3.4.0RUN wget https://cosmo.zip/pub/cosmocc/cosmocc-$VER.zipWORKDIR cosmoRUN unzip ../cosmocc-$VER.zipCOPY scrapscript.py .COPY compiler.py .COPY runtime.c .COPY examples/11_platforms/web/ .RUN CC=bin/cosmocc python3 compiler.py --compile --platform web.c handler.scrapRUN bin/assimilate a.outRUN du -sh a.out
# Set up the containerFROM scratch as serverCOPY --from=build /cosmo/a.out .EXPOSE 8000ENTRYPOINT ["./a.out"]
# Deploy from the repo root with# fly deploy --dockerfile examples/11_platforms/web/Dockerfile --local-only --config examples/11_platforms/web/fly.toml