Initial commit

This commit is contained in:
Arhur
2024-12-07 17:49:17 +01:00
parent 28099450bb
commit 01e34fe61a
5 changed files with 51 additions and 5 deletions
+4
View File
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
Dockerfile
docker-compose.yml
+23
View File
@@ -0,0 +1,23 @@
# Utiliser une image de base officielle de Node.js
FROM node:18-alpine
# Définir le répertoire de travail dans le conteneur
WORKDIR /app
# Copier les fichiers package.json et package-lock.json
COPY package*.json ./
# Installer les dépendances
RUN npm install
# Copier le reste de l'application
COPY . .
# Construire l'application Next.js
RUN npm run build
# Exposer le port sur lequel l'application va tourner
EXPOSE 3000
# Démarrer l'application
CMD ["npm", "start"]
+13
View File
@@ -0,0 +1,13 @@
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
volumes:
- .:/app
- /app/node_modules
+5
View File
@@ -9,6 +9,7 @@
"version": "0.1.0",
"dependencies": {
"next": "15.0.4",
"portfolio": "file:",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
@@ -3991,6 +3992,10 @@
"node": ">= 6"
}
},
"node_modules/portfolio": {
"resolved": "",
"link": true
},
"node_modules/possible-typed-array-names": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",
+6 -5
View File
@@ -9,18 +9,19 @@
"lint": "next lint"
},
"dependencies": {
"next": "15.0.4",
"portfolio": "file:",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "15.0.4"
"react-dom": "^19.0.0"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^8",
"eslint-config-next": "15.0.4",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "15.0.4"
"typescript": "^5"
}
}