Skip to content

Commit bc618d4

Browse files
authored
experimental: add missing pieces to docker template (#4783)
- Got rid of peer dependencies warnings - Added missing files in template - reduced install time of dependencies - added docker to init options
1 parent c838f40 commit bc618d4

File tree

21 files changed

+191
-164
lines changed

21 files changed

+191
-164
lines changed

apps/builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"fast-deep-equal": "^3.1.3",
8989
"immer": "^10.1.1",
9090
"immerhin": "^0.10.0",
91-
"isbot": "^5.1.19",
91+
"isbot": "^5.1.21",
9292
"lexical": "^0.21.0",
9393
"match-sorter": "^8.0.0",
9494
"mdast-util-from-markdown": "^2.0.2",
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
FROM node:22-alpine AS development-dependencies-env
2-
COPY . /app
3-
WORKDIR /app
4-
RUN npm install
5-
6-
FROM node:22-alpine AS production-dependencies-env
7-
COPY ./package.json package-lock.json /app/
1+
FROM node:22-alpine AS dependencies-env
2+
COPY .npmrc package.json /app/
83
WORKDIR /app
94
RUN npm install --omit=dev
105

11-
FROM node:22-alpine AS build-env
6+
FROM dependencies-env AS build-env
127
COPY . /app/
13-
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
148
WORKDIR /app
9+
RUN npm install
1510
RUN npm run build
1611

1712
FROM node:22-alpine
18-
COPY ./package.json package-lock.json /app/
19-
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
13+
COPY .npmrc package.json /app/
14+
COPY --from=dependencies-env /app/node_modules /app/node_modules
2015
COPY --from=build-env /app/build /app/build
16+
COPY --from=build-env /app/public /app/public
2117
WORKDIR /app
2218
# there is a DOMAINS env with comma separated allowed domains for image processing
2319
CMD ["npm", "run", "start"]

fixtures/react-router-docker/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
"fixtures:build": "pnpm cli build --template react-router-docker --template .template && pnpm prettier --write ./app/ ./package.json ./tsconfig.json"
1111
},
1212
"dependencies": {
13-
"@react-router/dev": "^7.1.1",
14-
"@react-router/fs-routes": "^7.1.1",
15-
"@react-router/node": "^7.1.1",
16-
"@react-router/serve": "^7.1.1",
13+
"@react-router/dev": "^7.1.3",
14+
"@react-router/fs-routes": "^7.1.3",
15+
"@react-router/node": "^7.1.3",
16+
"@react-router/serve": "^7.1.3",
1717
"@webstudio-is/image": "workspace:*",
1818
"@webstudio-is/react-sdk": "workspace:*",
1919
"@webstudio-is/sdk": "workspace:*",
2020
"@webstudio-is/sdk-components-animation": "workspace:*",
2121
"@webstudio-is/sdk-components-react": "workspace:*",
2222
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2323
"@webstudio-is/sdk-components-react-router": "workspace:*",
24-
"h3": "^1.13.1",
24+
"h3": "^1.14.0",
2525
"ipx": "^3.0.1",
26-
"isbot": "^5.1.19",
26+
"isbot": "^5.1.21",
2727
"react": "18.3.0-canary-14898b6a9-20240318",
2828
"react-dom": "18.3.0-canary-14898b6a9-20240318",
29-
"react-router": "^7.1.1",
29+
"react-router": "^7.1.3",
3030
"vite": "^5.4.11",
3131
"webstudio": "workspace:*"
3232
},

fixtures/ssg-netlify-by-project-id/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
"@webstudio-is/sdk-components-react-remix": "workspace:*",
4141
"react": "18.3.0-canary-14898b6a9-20240318",
4242
"react-dom": "18.3.0-canary-14898b6a9-20240318",
43-
"vike": "^0.4.210"
43+
"vike": "^0.4.219"
4444
}
4545
}

fixtures/ssg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
"@webstudio-is/sdk-components-react-remix": "workspace:*",
4141
"react": "18.3.0-canary-14898b6a9-20240318",
4242
"react-dom": "18.3.0-canary-14898b6a9-20240318",
43-
"vike": "^0.4.210"
43+
"vike": "^0.4.219"
4444
}
4545
}

fixtures/webstudio-cloudflare-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@webstudio-is/sdk-components-react": "workspace:*",
4040
"@webstudio-is/sdk-components-react-radix": "workspace:*",
4141
"@webstudio-is/sdk-components-react-remix": "workspace:*",
42-
"isbot": "^5.1.19",
42+
"isbot": "^5.1.21",
4343
"react": "18.3.0-canary-14898b6a9-20240318",
4444
"react-dom": "18.3.0-canary-14898b6a9-20240318",
4545
"webstudio": "workspace:*",

fixtures/webstudio-custom-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@webstudio-is/sdk-components-react": "workspace:*",
2323
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2424
"@webstudio-is/sdk-components-react-remix": "workspace:*",
25-
"isbot": "^5.1.19",
25+
"isbot": "^5.1.21",
2626
"react": "18.3.0-canary-14898b6a9-20240318",
2727
"react-dom": "18.3.0-canary-14898b6a9-20240318",
2828
"web-vitals": "^3.5.2"

fixtures/webstudio-remix-netlify-edge-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@webstudio-is/sdk-components-react": "workspace:*",
2424
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2525
"@webstudio-is/sdk-components-react-remix": "workspace:*",
26-
"isbot": "^5.1.19",
26+
"isbot": "^5.1.21",
2727
"react": "18.3.0-canary-14898b6a9-20240318",
2828
"react-dom": "18.3.0-canary-14898b6a9-20240318"
2929
},

fixtures/webstudio-remix-netlify-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@webstudio-is/sdk-components-react": "workspace:*",
2323
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2424
"@webstudio-is/sdk-components-react-remix": "workspace:*",
25-
"isbot": "^5.1.19",
25+
"isbot": "^5.1.21",
2626
"react": "18.3.0-canary-14898b6a9-20240318",
2727
"react-dom": "18.3.0-canary-14898b6a9-20240318"
2828
},

fixtures/webstudio-remix-vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@webstudio-is/sdk-components-react": "workspace:*",
2323
"@webstudio-is/sdk-components-react-radix": "workspace:*",
2424
"@webstudio-is/sdk-components-react-remix": "workspace:*",
25-
"isbot": "^5.1.19",
25+
"isbot": "^5.1.21",
2626
"react": "18.3.0-canary-14898b6a9-20240318",
2727
"react-dom": "18.3.0-canary-14898b6a9-20240318"
2828
},

0 commit comments

Comments
 (0)