Docker buid issue

This commit is contained in:
2025-10-17 10:02:44 +05:30
parent 4a1d0dbf9a
commit f64ddcca93
3 changed files with 9 additions and 7 deletions

View File

@ -63,11 +63,11 @@ services:
condition: service_healthy
restart: always
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80"]
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/index.html"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
retries: 5
start_period: 60s
networks:
vending-network:

View File

@ -18,6 +18,9 @@ RUN npm run build
# ===============================
FROM nginx:alpine
# Install wget for healthcheck
RUN apk add --no-cache wget
# Copy built files
COPY --from=builder /app/dist/fuse/browser /usr/share/nginx/html

View File

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>RootXVending</title>
<title>Fuse Angular - Angular Template and Starter Kit</title>
<meta charset="utf-8" />
<meta
name="description"
@ -22,11 +22,10 @@
<link rel="icon" type="image/png" href="favicon-16x16.png" />
<link rel="icon" type="image/png" href="favicon-32x32.png" />
<!-- Local Inter font (keep if you have it) -->
<!-- Remove these lines if files don't exist:
<link href="fonts/inter/inter.css" rel="stylesheet" />
<!-- Splash screen styles -->
<link href="styles/splash-screen.css" rel="stylesheet" />
-->
</head>
<body class="mat-typography">