Skip to content

Commit

Permalink
Add docker bake
Browse files Browse the repository at this point in the history
Signed-off-by: pandyamarut <[email protected]>
  • Loading branch information
pandyamarut committed Aug 21, 2024
1 parent ae149b6 commit 5ffa8b7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
variable "PUSH" {
default = "true"
}

variable "REPOSITORY" {
default = "runpod"
}

variable "BASE_IMAGE_VERSION" {
default = "preview"
}

group "all" {
targets = ["main"]
}


group "main" {
targets = ["worker-1210"]
}


target "worker-1210" {
tags = ["${REPOSITORY}/worker-sglang:${BASE_IMAGE_VERSION}-cuda12.1.0"]
context = "."
dockerfile = "Dockerfile"
args = {
BASE_IMAGE_VERSION = "${BASE_IMAGE_VERSION}"
WORKER_CUDA_VERSION = "12.1.0"
}
output = ["type=docker,push=${PUSH}"]
}

0 comments on commit 5ffa8b7

Please sign in to comment.