diff --git a/docker-compose.yml b/docker-compose.yml index c4de340a..6249f58d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +version: "3.8" services: # Frontend - React service frontend: @@ -13,6 +14,8 @@ services: # backend: # build: # context: ./backend + # volumes: + # - ./backend:/backend # ports: # - "3001:3000" diff --git a/frontend/Dockerfile b/frontend/Dockerfile index bc1e5b71..63b3d841 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,6 +2,11 @@ FROM node:20 WORKDIR /frontend +COPY . . + +RUN npm install -g next +RUN npm install + EXPOSE 3000 CMD ["npm", "run", "dev"] \ No newline at end of file diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 777f51c6..c9426e56 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -13,12 +13,12 @@ "react-dom": "^18" }, "devDependencies": { - "@types/node": "^20", - "@types/react": "^18", + "@types/node": "20.10.4", + "@types/react": "18.2.45", "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "14.0.4", - "typescript": "^5" + "typescript": "5.3.3" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/frontend/package.json b/frontend/package.json index 36bb227c..8b1907a1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,16 +9,16 @@ "lint": "next lint" }, "dependencies": { + "next": "14.0.4", "react": "^18", - "react-dom": "^18", - "next": "14.0.4" + "react-dom": "^18" }, "devDependencies": { - "typescript": "^5", - "@types/node": "^20", - "@types/react": "^18", + "@types/node": "20.10.4", + "@types/react": "18.2.45", "@types/react-dom": "^18", "eslint": "^8", - "eslint-config-next": "14.0.4" + "eslint-config-next": "14.0.4", + "typescript": "5.3.3" } }