Sistemate un paio di configurazioni, dovremmo essere pronti a programmare
This commit is contained in:
parent
80fc103e03
commit
02e7c3c7af
2
backend/index.php
Normal file
2
backend/index.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo "CIAOOO";
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user