This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// render-json.tsx | |
import React from "react"; | |
/** | |
* Interface pour un élément dans la structure JSON | |
*/ | |
interface ElementJson { | |
/** Type d'élément HTML (div, p, span, etc.) */ | |
type: string; | |
/** Attributs HTML et propriétés de l'élément */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## production : | |
services: | |
api: | |
container_name: api | |
platform: linux/amd64 | |
build: | |
context: . | |
dockerfile: ./Dockerfile.prod.yml | |
image: api:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Production : | |
# Étape 1 : Construction | |
FROM node:20.11.1-alpine3.19 AS builder | |
# Définir le répertoire de travail | |
WORKDIR /opt/app | |
# Copier les fichiers nécessaires pour installer les dépendances | |
COPY package.json yarn.lock ./ |