From 7e3c83e40de5b14ee931dd8763d3b246776d39f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Pruneau?= Date: Mon, 29 Dec 2025 11:05:39 -0500 Subject: [PATCH] Found a way to set variables inside docker compose and use them in Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 127ed43..ff7e303 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ WORKDIR /app RUN yarn global add @quasar/cli # Set environment variables -ENV VITE_TARGO_BACKEND_URL="http://10.100.251.2:3420/" +ARG BACKEND_URL +ENV VITE_TARGO_BACKEND_URL=$BACKEND_URL # Copy the code COPY . .