mirror of https://git.nuv.sh/nuv/condition_overload
1FROM ghcr.io/gleam-lang/gleam:v1.12.0-erlang-alpine AS build
2COPY . /app/
3RUN cd /app && gleam build
4
5FROM oven/bun AS compile
6COPY --from=build /app/build/dev/javascript/ /build
7WORKDIR /build
8RUN bun build --compile --target=bun-linux-x64 /build/condition_overload/entry.mjs --outfile /build/bin/linux-x64/condition_overload
9RUN bun build --compile --target=bun-linux-arm64 /build/condition_overload/entry.mjs --outfile /build/bin/linux-arm64/condition_overload
10RUN bun build --compile --target=bun-windows-x64 /build/condition_overload/entry.mjs --outfile /build/bin/windows-x64/condition_overload
11RUN bun build --compile --target=bun-darwin-x64 /build/condition_overload/entry.mjs --outfile /build/bin/darwin-x64/condition_overload
12RUN bun build --compile --target=bun-darwin-arm64 /build/condition_overload/entry.mjs --outfile /build/bin/darwin-arm64/condition_overload
13RUN bun build --compile --target=bun-x64-musl /build/condition_overload/entry.mjs --outfile /build/bin/x64-musl/condition_overload
14RUN bun build --compile --target=bun-linux-arm64-musl /build/condition_overload/entry.mjs --outfile /build/bin/linux-arm64-musl/condition_overload
15
16FROM scratch
17COPY --from=compile /build/bin/ /