feat: Add email configuration and alert system
Introduces SMTP configuration settings and alert definitions to enable automated email notifications. This includes new types for `SmtpConfig` and `AlertDefinition`, and integrates these into the settings page and mock database. Adds styling for select elements and scrollbar hiding in the main HTML. Updates mock database logic to potentially support local development without a backend.
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -1,29 +0,0 @@
|
||||
# Stage 1: Build
|
||||
FROM node:20-alpine as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copia i file di dipendenze
|
||||
COPY package*.json ./
|
||||
|
||||
# Installa le dipendenze
|
||||
RUN npm install
|
||||
|
||||
# Copia tutto il codice sorgente
|
||||
COPY . .
|
||||
|
||||
# Esegui la build di produzione (crea la cartella dist)
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Serve con Nginx
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copia i file compilati dalla build precedente alla cartella di Nginx
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
# Copia la configurazione custom di Nginx
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user