feat: Enhance condo and family data models
Adds new fields for detailed address information and notes to the Condo and Family types. Updates database schema and server API endpoints to support these new fields, improving data richness for location and specific family/condo details.
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -1,22 +0,0 @@
|
||||
# Stage 1: Build dell'applicazione React
|
||||
FROM node:20-alpine as build
|
||||
WORKDIR /app
|
||||
# Copia i file di dipendenze
|
||||
COPY package*.json ./
|
||||
# Usa npm install per installare le dipendenze (più sicuro di ci se manca lockfile)
|
||||
RUN npm install
|
||||
# Copia tutto il codice sorgente
|
||||
COPY . .
|
||||
# Esegue la build di produzione (crea la cartella dist)
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Server Nginx per servire i file statici
|
||||
FROM nginx:alpine
|
||||
# Copia i file compilati dallo stage 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
|
||||
# Espone la porta 80
|
||||
EXPOSE 80
|
||||
# Avvia Nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user