Dockerfile aktualisiert
Deploy Standortpruefung / deploy (push) Successful in 12s
Details
Deploy Standortpruefung / deploy (push) Successful in 12s
Details
This commit is contained in:
parent
35d3640668
commit
1080b8c8d1
|
|
@ -1,6 +1,5 @@
|
|||
# Nutze Node.js als Basis (LTS Version)
|
||||
FROM node:20-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Kopiere package files und installiere Abhängigkeiten
|
||||
|
|
@ -24,9 +23,8 @@ RUN npm install --production
|
|||
# Kopiere das gebaute Frontend und das Backend
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY --from=build /app/server.cjs ./
|
||||
COPY --from=build /app/public ./public
|
||||
# Die Zeile mit /app/public wurde entfernt, da Vite dies bereits in /dist integriert hat
|
||||
|
||||
# Der Express-Server läuft auf Port 3000
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.cjs"]
|
||||
Loading…
Reference in New Issue