mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-19 05:58:57 +00:00
fix(docker): Use IMAGE_NAME in api image (#3786)
If you set the IMAGE_NAME variable, then the base image will use that name, but the api image would previously use a hardcoded `deepset/haystack` image name.
This commit is contained in:
parent
434beebfb1
commit
e53cc2bc3f
@ -1,6 +1,7 @@
|
||||
ARG base_image_tag
|
||||
ARG base_image
|
||||
|
||||
FROM deepset/haystack:${base_image_tag}
|
||||
FROM ${base_image}:${base_image_tag}
|
||||
|
||||
ENV SERVICE_NAME="gunicorn-service"
|
||||
|
||||
|
@ -68,6 +68,7 @@ target "cpu" {
|
||||
dockerfile = "Dockerfile.api"
|
||||
tags = ["${IMAGE_NAME}:cpu-${IMAGE_TAG_SUFFIX}"]
|
||||
args = {
|
||||
base_image = "${IMAGE_NAME}"
|
||||
base_image_tag = "base-cpu-${BASE_IMAGE_TAG_SUFFIX}"
|
||||
}
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
@ -83,6 +84,7 @@ target "gpu" {
|
||||
dockerfile = "Dockerfile.api"
|
||||
tags = ["${IMAGE_NAME}:gpu-${IMAGE_TAG_SUFFIX}"]
|
||||
args = {
|
||||
base_image = "${IMAGE_NAME}"
|
||||
base_image_tag = "base-gpu-${BASE_IMAGE_TAG_SUFFIX}"
|
||||
}
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user