Found a way to set variables inside docker compose and use them in Dockerfile

This commit is contained in:
Frédérick Pruneau 2025-12-29 11:05:39 -05:00
parent 0efa683a07
commit 7e3c83e40d

View File

@ -8,7 +8,8 @@ WORKDIR /app
RUN yarn global add @quasar/cli RUN yarn global add @quasar/cli
# Set environment variables # 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 the code
COPY . . COPY . .