Closed sweharris closed 10 months ago
change the first line to pull the latest crystal alpine:
FROM crystallang/crystal:latest-alpine AS builder
that builds and seems to run correctly. if you submit a PR with that change, i'm happy to merge it.
I've raised the PR you suggested but I can't prove it works because my build machine is so underpowered, I'm still waiting for it to complete!
it should be fine, but i'm giving it a go, myself
Well the build finished, so that's good :-)
> [builder 6/6] RUN crystal build src/ktistec/server.cr --static --no 699.2s
=> [server 4/8] COPY --from=builder /build/etc /app/etc 1.9s
=> [server 5/8] COPY --from=builder /build/public /app/public 1.6s
=> [server 6/8] COPY --from=builder /build/server /bin/server 2.4s
=> [server 7/8] RUN mkdir /db 2.5s
=> [server 8/8] RUN ln -s /app/public/uploads /uploads 2.9s
=> exporting to image 3.1s
=> => exporting layers 3.0s
=> => writing image sha256:53aeff030c35ee17fe2433b6275f930c07e476441ef95 0.0s
=> => naming to docker.io/library/ktistec 0.1s
% docker images | grep kt
ktistec latest 53aeff030c35 58 seconds ago 45.4MB
mine, as well. let me know if you run into issues running it.