Skip to content

Commit

Permalink
use build args
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven committed Jun 24, 2024
1 parent 8981b51 commit e4cb587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ COPY . ./
# Log the contents of the working directory
RUN echo "Contents of /app after copying frontend files:" && ls -la /app

# Set environment variable via build argument
ARG VITE_APP_API_URL
ENV VITE_APP_API_URL=$VITE_APP_API_URL

# Build the application using the specified config
RUN npx vite build

Expand Down

0 comments on commit e4cb587

Please sign in to comment.