fraudTech commited on
Commit
6b10b20
·
1 Parent(s): b66356e

Configure gateway URL for build - fix login API routing

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -10,7 +10,11 @@ RUN npm ci
10
  # Copy source code
11
  COPY web/ ./
12
 
13
- # Build the app
 
 
 
 
14
  RUN npm run build
15
 
16
  # Production stage - serve with nginx
@@ -24,8 +28,4 @@ COPY web/nginx.conf /etc/nginx/conf.d/default.conf
24
 
25
  EXPOSE 7860
26
 
27
- CMD ["nginx", "-g", "daemon off;"]
28
-
29
- # In Dockerfile, before npm run build, add:
30
- ARG GATEWAY_URL=https://YOUR_USERNAME-evo-gateway.hf.space/api
31
- ENV VITE_GATEWAY_URL=$GATEWAY_URL
 
10
  # Copy source code
11
  COPY web/ ./
12
 
13
+ # Set build-time environment variable for API gateway URL
14
+ ARG VITE_GATEWAY_URL=https://deepthoughtai-evo-gateway.hf.space
15
+ ENV VITE_GATEWAY_URL=$VITE_GATEWAY_URL
16
+
17
+ # Build the app (Vite will use VITE_GATEWAY_URL)
18
  RUN npm run build
19
 
20
  # Production stage - serve with nginx
 
28
 
29
  EXPOSE 7860
30
 
31
+ CMD ["nginx", "-g", "daemon off;"]