Skip to content

Commit 8b02c27

Browse files
committed
chore: docker optimizations
1 parent b8cc6b9 commit 8b02c27

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
node_modules
22
.git
3+
.gitignore
4+
*.md
5+
Dockerfile
6+
.github
7+
.prettierrc

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ FROM node:24-alpine
22

33
WORKDIR /app
44

5-
COPY . .
5+
COPY package*.json .
6+
7+
RUN npm install && \
8+
npm cache clean --force
69

7-
RUN npm install
10+
COPY . .
811

912
EXPOSE 3000
1013

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"scripts": {
88
"docusaurus": "docusaurus",
99
"start": "docusaurus start --host 0.0.0.0",
10-
"dev": "npm run start",
1110
"build": "docusaurus build",
1211
"swizzle": "docusaurus swizzle",
1312
"clear": "docusaurus clear",

0 commit comments

Comments
 (0)