Skip to content

Commit

Permalink
fix: already done, just fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
syafiqparadisam committed Jul 24, 2024
1 parent a7707e8 commit cd44a3b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COPY . .
# Install dependencies
RUN npm install

# Mount environment variable from github and build app
RUN --mount=type=secret,id=VITE_TEMPLATE_ID,required=true,mode=0666 \
--mount=type=secret,id=VITE_PUBLIC_KEY,required=true,mode=0666 \
--mount=type=secret,id=VITE_SERVICE_ID,required=true,mode=0666 \
Expand All @@ -18,18 +19,6 @@ RUN --mount=type=secret,id=VITE_TEMPLATE_ID,required=true,mode=0666 \
VITE_SERVICE_ID=$(cat /run/secrets/VITE_SERVICE_ID) \
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)


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


# Build the application

# Use a lightweight web server to serve the app
FROM nginx:alpine

Expand Down

0 comments on commit cd44a3b

Please sign in to comment.