Add script to build in Docker

This commit is contained in:
2026-05-23 23:09:18 -07:00
parent cd7caafec7
commit 424f83ed94
2 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ RUN sed -i 's/^CXX=clang++$/&-18/' Makefile
RUN make nosandbox -j$(nproc) RUN make nosandbox -j$(nproc)
# export-only stage: `docker build --target=export --output=./bin .`
FROM scratch AS export
COPY --from=build /usr/src/app/bin/fusion /fusion
# prod # prod
FROM alpine:3 FROM alpine:3

1
build_docker.sh Executable file
View File

@@ -0,0 +1 @@
docker build --target=export --output=./bin .