Skip to content

Commit 8933543

Browse files
authored
Merge branch 'main' into feat/adding-graphs-to-mcp
2 parents ce602d6 + 7772a4d commit 8933543

File tree

17 files changed

+317
-69
lines changed

17 files changed

+317
-69
lines changed

Dockerfile

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Use the latest LTS version of Node.js
2-
# https://hub.docker.com/_/node
3-
FROM node:22@sha256:37ff334612f77d8f999c10af8797727b731629c26f2e83caa6af390998bdc49c AS build-stage
1+
# BUILD STAGE
2+
FROM node:24-slim@sha256:36ae19f59c91f3303c7a648f07493fe14c4bd91320ac8d898416327bacf1bbfa AS build-stage
43
WORKDIR /usr/src/app
54

65
# Copy package.json and package-lock.json
@@ -14,11 +13,21 @@ ENV NODE_ENV=production
1413
COPY . .
1514
RUN npm run build
1615

17-
# The same image but now only install the production dependencies as the frontend is already built using vite in the build-stage
18-
FROM gcr.io/distroless/nodejs22-debian12@sha256:b765815eafacee5222bfa50179028f41dd8c642b68ad68ec4e6922d3b1ff2710 AS production
16+
# Remove dev dependencies so the node_modules directory that we COPY into the distroless image contains only runtime dependencies
17+
RUN npm prune --omit=dev
1918

19+
20+
# PRODUCTION STAGE
21+
FROM gcr.io/distroless/nodejs24-debian12@sha256:20a51c926c0bb68a9b1f7059c81516da002655f8a896a2cb7bc56b56974782b3 AS production
2022
WORKDIR /usr/src/app
2123

22-
COPY --from=build-stage /usr/src/app /usr/src/app
24+
# Copy built files
25+
COPY --from=build-stage /usr/src/app/dist/client /usr/src/app/dist/client
26+
COPY --from=build-stage /usr/src/app/dist/vite.config.json /usr/src/app/dist/vite.config.json
27+
COPY --from=build-stage /usr/src/app/dist/server /usr/src/app/server
28+
COPY --from=build-stage /usr/src/app/dist/server.js /usr/src/app/server.js
29+
COPY --from=build-stage /usr/src/app/public /usr/src/app/public
30+
COPY --from=build-stage /usr/src/app/node_modules /usr/src/app/node_modules
2331

32+
# Run
2433
CMD ["server.js"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ The UI will be served on http://localhost:5173.
4141
To enable local development with Safari, follow these steps on your local machine:
4242

4343
1. **Update Cookie Settings:**
44-
In [`server/encrypted-session.js`](server/encrypted-session.js), set the `secure` property to `false` in both occurrences.
44+
In [`server/encrypted-session.js`](server/encrypted-session.ts), set the `secure` property to `false` in both occurrences.
4545

4646
2. **Disable Helmet Registration:**
47-
In [`server.js`](server.js), comment out or remove the registration of `helmet`.
47+
In [`server.js`](server.ts), comment out or remove the registration of `helmet`.
4848

4949

5050
### Build & Production

0 commit comments

Comments
 (0)