Skip to content

Commit

Permalink
mod: Dockerfileでnpm install -g next
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusmaaakun committed Dec 16, 2023
1 parent e8ce62b commit 495d8db
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: "3.8"
services:
# Frontend - React service
frontend:
Expand All @@ -13,6 +14,8 @@ services:
# backend:
# build:
# context: ./backend
# volumes:
# - ./backend:/backend
# ports:
# - "3001:3000"

Expand Down
5 changes: 5 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ FROM node:20

WORKDIR /frontend

COPY . .

RUN npm install -g next
RUN npm install

EXPOSE 3000

CMD ["npm", "run", "dev"]
6 changes: 3 additions & 3 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 495d8db

Please sign in to comment.