Skip to content

Commit

Permalink
test lagi
Browse files Browse the repository at this point in the history
  • Loading branch information
syafiqparadisam committed Jul 24, 2024
1 parent d07dbbe commit 0ea5a27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ea5a27

Please sign in to comment.