Phoenix21 commited on
Commit
e27cd9e
·
verified ·
1 Parent(s): b49f325

🐳 Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -17,12 +17,10 @@ RUN npm install --legacy-peer-deps
17
  # Copy frontend source
18
  COPY frontend/ ./
19
 
20
- # Set build-time environment variable for API URL
21
- # Empty string because frontend services already include /api prefix in their calls
22
- ARG VITE_API_BASE_URL=
23
- ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
24
-
25
  # Build frontend with error checking
 
 
 
26
  RUN echo "=== Building frontend with Vite ===" && \
27
  npm run build 2>&1 | tee /tmp/build.log && \
28
  echo "=== Build complete ===" && \
 
17
  # Copy frontend source
18
  COPY frontend/ ./
19
 
 
 
 
 
 
20
  # Build frontend with error checking
21
+ # Note: VITE_API_BASE_URL is intentionally NOT set here
22
+ # The frontend will use its default fallback: import.meta.env.VITE_API_BASE_URL || 'http://localhost:8080'
23
+ # Since we're in production, the frontend will make API calls to /api/* which nginx proxies to localhost:8080
24
  RUN echo "=== Building frontend with Vite ===" && \
25
  npm run build 2>&1 | tee /tmp/build.log && \
26
  echo "=== Build complete ===" && \