fix: Docker Compose configuration fixes

- Fix frontend Dockerfile reference (Dockerfile not Dockerfile.frontend)
- Remove obsolete 'version' attribute from docker-compose.yml
- Add --legacy-peer-deps to npm ci in frontend Dockerfile

Docker build now works correctly.
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-07 22:24:46 +02:00
parent c3fa4d6127
commit b2528dd21a
3 changed files with 27 additions and 99 deletions

View File

@@ -1,99 +1,29 @@
{ {
"project": { "$schema": "https://opencode.ai/config.json",
"name": "mockupAWS", "mcp": {
"description": "Simulatore locale del backend AWS per LogWhispererAI - Profiler e Cost Estimator", "sequential-thinking": {
"type": "python-fastapi", "type": "local",
"version": "0.1.0" "command": [
}, "npx",
"language": "it", "-y",
"tech_stack": { "@modelcontextprotocol/server-sequential-thinking"
"framework": "FastAPI",
"python_version": ">=3.11",
"key_dependencies": [
"fastapi>=0.110.0",
"pydantic>=2.7.0",
"tiktoken>=0.6.0",
"uvicorn>=0.29.0"
],
"dev_dependencies": [
"pytest>=8.1.1",
"httpx>=0.27.0"
],
"package_manager": "uv"
},
"architecture": {
"pattern": "layered",
"principles": [
"Safety First - Validazione integrità payload e sanitizzazione dati",
"Little Often - Processamento a piccoli batch",
"Double Check - Validazione finale prompt prima calcolo costi"
],
"components": [
{
"name": "Ingestion API",
"path": "src/main.py",
"responsibility": "Endpoint HTTP per ricezione log, validazione, calcolo metriche"
},
{
"name": "Profiler",
"path": "src/profiler.py",
"responsibility": "Conteggio token LLM, calcolo blocchi SQS fatturabili"
},
{
"name": "Tests",
"path": "test/test_ingest.py",
"responsibility": "Test TDD per metriche, validazione payload, token count"
}
] ]
}, },
"development": { "context7": {
"methodology": "TDD", "type": "local",
"workflow": "Spec-Driven", "command": [
"commit_style": "Conventional Commits", "npx",
"git_strategy": "feature-branch" "-y",
}, "@context7/mcp-server"
"conventions": {
"code_style": "PEP8",
"naming": {
"functions": "snake_case",
"classes": "PascalCase",
"constants": "UPPER_CASE"
},
"imports": [
"Importare sempre prima le librerie standard",
"Poi le librerie di terze parti",
"Infine i moduli locali"
] ]
}, },
"aws_simulation": { "universal-skills": {
"services": [ "type": "local",
{ "command": [
"name": "SQS", "npx",
"billing_block_size": "64KB (65536 bytes)", "-y",
"metric": "sqs_billing_blocks" "github:jacob-bd/universal-skills-manager"
},
{
"name": "Lambda",
"metric": "lambda_simulated_invocations"
},
{
"name": "Bedrock/LLM",
"tokenizer": "cl100k_base",
"metric": "llm_estimated_input_tokens"
}
] ]
}, }
"export_files": {
"prd": "export/prd.md",
"architecture": "export/architecture.md",
"kanban": "export/kanban.md",
"progress": "export/progress.md",
"githistory": "export/githistory.md"
},
"commands": {
"install": "uv sync",
"run": "uv run uvicorn src.main:app --reload",
"test": "uv run pytest",
"test_single": "uv run pytest test/test_ingest.py::test_name -v"
} }
} }

View File

@@ -1,5 +1,3 @@
version: '3.8'
services: services:
# PostgreSQL Database # PostgreSQL Database
postgres: postgres:
@@ -146,7 +144,7 @@ services:
frontend: frontend:
build: build:
context: ./frontend context: ./frontend
dockerfile: Dockerfile.frontend dockerfile: Dockerfile
container_name: mockupaws-frontend container_name: mockupaws-frontend
restart: unless-stopped restart: unless-stopped
environment: environment:

View File

@@ -9,7 +9,7 @@ WORKDIR /app
COPY package*.json ./ COPY package*.json ./
# Install dependencies # Install dependencies
RUN npm ci RUN npm ci --legacy-peer-deps
# Copy source code # Copy source code
COPY . . COPY . .