Skip to content

Commit 3e3776d

Browse files
committed
fix: πŸ› docker build & npm install
1 parent c9c379b commit 3e3776d

File tree

5 files changed

+10187
-22
lines changed

5 files changed

+10187
-22
lines changed

β€Ž.dockerignoreβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
npm-debug.log
3+
.git
4+
.gitignore
5+
README.md
6+
.env
7+
.DS_Store
8+
*.log
9+
package-lock.json

β€ŽDockerfileβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node
1+
FROM node:20
22

33
WORKDIR /nodeapp
44

@@ -9,4 +9,4 @@ COPY docs /nodeapp/docs
99
COPY images /nodeapp/images
1010
COPY scss /nodeapp/scss
1111

12-
RUN npm install
12+
RUN npm install --legacy-peer-deps

β€Ždocker-compose.ymlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3'
21
services:
32
nodeapp:
43
build: .

0 commit comments

Comments
Β (0)