Refactor Dockerfile, update README, and enhance Calculator component

- Refactored Dockerfile for improved multi-stage builds and added development and production configurations.
- Updated README with clearer project description, local development instructions, and added contact information.
- Enhanced Calculator component to manage theme and history using localStorage, improving user experience.
- Added new pages for legal mentions and privacy policy, including relevant metadata.
- Updated docker-compose.yml for better service management and added environment variables.
- Introduced a new LICENSE file outlining usage rights and responsibilities.
This commit is contained in:
Puechberty Arthur
2026-04-01 23:30:51 +02:00
parent 572f29c442
commit 8400e26c0a
9 changed files with 318 additions and 162 deletions
+25 -5
View File
@@ -1,11 +1,31 @@
services:
web:
build: .
calculatrice-dev:
profiles: ["dev"]
build:
context: .
target: calculatrice-dev
container_name: calculatrice-dev
ports:
- "3000:3000"
volumes:
- ./:/app
- .:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
command: npm run dev
NEXT_TELEMETRY_DISABLED: "1"
NODE_ENV: development
calculatrice-prod:
profiles: ["prod"]
build:
context: .
target: calculatrice-runner
container_name: calculatrice-prod
restart: unless-stopped
ports:
- "3014:3000"
env_file:
- .env
environment:
NEXT_TELEMETRY_DISABLED: "1"
NODE_ENV: production