Update Dockerfile
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m0s
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m0s
This commit is contained in:
parent
a8499df77a
commit
640921523e
@ -9,7 +9,10 @@ RUN npm run build
|
||||
# --- Stufe 2: Ausliefern (Der Webserver) ---
|
||||
FROM nginx:alpine
|
||||
|
||||
# HIER IST DIE ÄNDERUNG: Wir kopieren aus /app/build (React-Standard)
|
||||
# HIER IST DIE ÄNDERUNG: Wir überschreiben die Nginx-Standard-Konfig mit unserer eigenen
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# React-Build kopieren
|
||||
COPY --from=builder /app/build /usr/share/nginx/html
|
||||
|
||||
# Port 80 freigeben
|
||||
|
||||
Loading…
Reference in New Issue
Block a user