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 condition: service_healthy
restart: always restart: always
healthcheck: 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 interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 5
start_period: 40s start_period: 60s
networks: networks:
vending-network: vending-network:

View File

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

View File

@ -1,7 +1,7 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<title>RootXVending</title> <title>Fuse Angular - Angular Template and Starter Kit</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta <meta
name="description" name="description"
@ -22,11 +22,10 @@
<link rel="icon" type="image/png" href="favicon-16x16.png" /> <link rel="icon" type="image/png" href="favicon-16x16.png" />
<link rel="icon" type="image/png" href="favicon-32x32.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" /> <link href="fonts/inter/inter.css" rel="stylesheet" />
<!-- Splash screen styles -->
<link href="styles/splash-screen.css" rel="stylesheet" /> <link href="styles/splash-screen.css" rel="stylesheet" />
-->
</head> </head>
<body class="mat-typography"> <body class="mat-typography">