Sistemate un paio di configurazioni, dovremmo essere pronti a programmare

This commit is contained in:
Jag 2025-10-22 00:36:06 +02:00
parent 80fc103e03
commit 02e7c3c7af
4 changed files with 7 additions and 6 deletions

2
backend/index.php Normal file
View File

@ -0,0 +1,2 @@
<?php
echo "CIAOOO";

View File

@ -2,11 +2,11 @@ services:
frontend:
build: ./frontend
ports:
- "3000:3000" # React dev server
- "5173:5173" # React dev server
working_dir: /app
volumes:
- ./frontend:/app
- /app/node_modules # Avoid host/node_modules conflicts
- /app/node_modules
command: npm run dev
depends_on:
- backend

View File

@ -1,4 +1,4 @@
FROM node:18
FROM node:21
LABEL authors="Sergio Bianchi"
WORKDIR /app
@ -8,5 +8,4 @@ RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "run", "dev"]
EXPOSE 5173

View File

@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --host 0.0.0.0",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"