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 08038a9 commit d07dbbe
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ WORKDIR /app

# Copy source code

RUN --mount=type=secret,id=VITE_SERVICE_ID \
cat /run/secrets/VITE_SERVICE_ID


RUN --mount=type=secret,id=VITE_TEMPLATE_ID \
cat /run/secrets/VITE_TEMPLATE_ID
Expand All @@ -17,10 +14,18 @@ RUN --mount=type=secret,id=VITE_TEMPLATE_ID \
RUN --mount=type=secret,id=VITE_PUBLIC_KEY \
cat /run/secrets/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'

COPY . .
ENV VITE_PUBLIC_KEY=Y5qSjyArYPDPZXVdM
ENV VITE_SERVICE_ID=service_gyicy3e
ENV VITE_TEMPLATE_ID=template_fo97i6y
# ENV VITE_PUBLIC_KEY=Y5qSjyArYPDPZXVdM
# ENV VITE_SERVICE_ID=service_gyicy3e
# ENV VITE_TEMPLATE_ID=template_fo97i6y

# Install dependencies
RUN npm install
Expand Down

0 comments on commit d07dbbe

Please sign in to comment.