From 0ea5a27d57eaa441b251bae96c37961d8a4cf090 Mon Sep 17 00:00:00 2001 From: syafiqparadisam Date: Wed, 24 Jul 2024 11:57:48 +0700 Subject: [PATCH] test lagi --- project/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/project/Dockerfile b/project/Dockerfile index ba6a3a2..99fdc08 100644 --- a/project/Dockerfile +++ b/project/Dockerfile @@ -16,11 +16,11 @@ RUN --mount=type=secret,id=VITE_PUBLIC_KEY \ RUN --mount=type=secret,id=VITE_SERVICE_ID \ cat /run/secrets/VITE_SERVICE_ID - -RUN sh -c 'VITE_SERVICE_ID=$(cat /run/secrets/VITE_SERVICE_ID) \ - VITE_TEMPLATE_ID=$(cat /run/secrets/VITE_TEMPLATE_ID) \ - VITE_PUBLIC_KEY=$(cat /run/secrets/VITE_PUBLIC_KEY) \ - npm run build' + +RUN export VITE_SERVICE_ID=$(cat /run/secrets/VITE_SERVICE_ID) \ +&& export VITE_TEMPLATE_ID=$(cat /run/secrets/VITE_TEMPLATE_ID) \ +&& export VITE_PUBLIC_KEY=$(cat /run/secrets/VITE_PUBLIC_KEY) \ +&& npm run build COPY . . # ENV VITE_PUBLIC_KEY=Y5qSjyArYPDPZXVdM