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 a557573 commit 88ab69b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ FROM node:20.12-alpine AS build
# Copy source code


RUN --mount=type=secret,id=VITE_TEMPLATE_ID,required ls -la /run/secrets/
RUN --mount=type=secret,id=VITE_TEMPLATE_ID \
VITE_TEMPLATE_ID=$(cat /run/secrets/VITE_TEMPLATE_ID)

RUN --mount=type=secret,id=VITE_PUBLIC_KEY,required ls -la /run/secrets/
RUN --mount=type=secret,id=VITE_PUBLIC_KEY \
VITE_PUBLIC_KEY=$(cat /run/secrets/VITE_PUBLIC_KEY)

RUN --mount=type=secret,id=VITE_SERVICE_ID,required ls -la /run/secrets/
RUN --mount=type=secret,id=VITE_SERVICE_ID \
VITE_SERVICE_ID=$(cat /run/secrets/VITE_SERVICE_ID)

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)
# 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)

WORKDIR /app

Expand Down

0 comments on commit 88ab69b

Please sign in to comment.