2022-12-13 06:35:13 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-12-30 04:16:37 +08:00
|
|
|
# Builds base images used to build extra flavours of Livebook images
|
2022-12-13 06:35:13 +08:00
|
|
|
|
2022-12-30 04:16:37 +08:00
|
|
|
set -ex
|
|
|
|
cd "$(dirname "$0")/.."
|
2022-12-13 06:35:13 +08:00
|
|
|
|
|
|
|
elixir=1.14.2
|
|
|
|
erlang=24.3.4.2
|
|
|
|
|
2022-12-30 04:16:37 +08:00
|
|
|
docker buildx build --push --platform linux/amd64,linux/arm64 \
|
2023-03-16 00:30:18 +08:00
|
|
|
-t ghcr.io/livebook-dev/utils:elixir-cuda11.8 \
|
2022-12-30 04:16:37 +08:00
|
|
|
--build-arg ELIXIR_VERSION=$elixir \
|
|
|
|
--build-arg ERLANG_VERSION=$erlang \
|
|
|
|
--build-arg CUDA_VERSION=11.8.0 \
|
|
|
|
-f docker/base/elixir-cuda.dockerfile \
|
|
|
|
docker/base
|