mirror of
https://github.com/MrUnknownDE/utools.git
synced 2026-04-23 07:53:45 +02:00
push dev-env
This commit is contained in:
26
frontend/Dockerfile.dev
Normal file
26
frontend/Dockerfile.dev
Normal file
@@ -0,0 +1,26 @@
|
||||
# Stage 1: Build (falls wir später einen Build-Schritt hätten, z.B. für Tailwind Purge)
|
||||
# Aktuell nicht nötig, da wir CDN/statische Dateien haben.
|
||||
|
||||
# Stage 2: Production Environment using Nginx
|
||||
FROM nginx:1.25-alpine
|
||||
|
||||
# Arbeitsverzeichnis im Container (optional, aber gute Praxis)
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
# Entferne die Standard Nginx Willkommensseite
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Kopiere unsere eigene Nginx Konfiguration
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Kopiere die Frontend-Dateien in das Verzeichnis, das Nginx ausliefert
|
||||
COPY app/ .
|
||||
# Falls du später CSS-Dateien oder Bilder hast, kopiere sie auch:
|
||||
# COPY styles.css .
|
||||
# COPY images/ ./images
|
||||
|
||||
# Nginx lauscht standardmäßig auf Port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Der Basis-Image startet Nginx bereits. Kein CMD nötig, außer wir wollen Optionen ändern.
|
||||
# CMD ["nginx", "-g", "daemon off;"] # Standard-CMD im Basis-Image
|
||||
Reference in New Issue
Block a user