Skip to content

Commit 02ce5cb

Browse files
committed
updates
1 parent 936dd0d commit 02ce5cb

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
22
# Use the imbios/bun-node image as the base image with Node and Bun
33
# Keep bun and node version in sync with package.json
4-
FROM imbios/bun-node:1.1.38-18-alpine AS builder
4+
FROM imbios/bun-node:1.2.13-22-alpine AS builder
55

66
# Set the working directory in the container
77
WORKDIR /app

Dockerfile.fly renamed to fly.Dockerfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Use the imbios/bun-node image as the base image with Node and Bun
33
# Keep bun and node version in sync with package.json
44
ARG NODE_VERSION=22.0.0
5-
ARG BUN_VERSION=1.1.38
6-
FROM imbios/bun-node:1.1.38-22-slim AS base
5+
ARG BUN_VERSION=1.2.13
6+
FROM imbios/bun-node:1.2.13-22-slim AS base
77

88
LABEL fly_launch_runtime="Node.js"
99

@@ -14,7 +14,7 @@ WORKDIR /app
1414
ENV NODE_ENV="production"
1515

1616
# Throw-away build stage to reduce size of final image
17-
From base As builder
17+
FROM base As builder
1818

1919
# Install packages needed to build node modules
2020
RUN apt-get update -qq && \
@@ -23,6 +23,15 @@ RUN apt-get update -qq && \
2323
# Copy package.json and package-lock.json
2424
COPY package.json package-lock.json ./
2525

26+
# Install the root dependencies and devDependencies
27+
RUN npm install
28+
29+
# Copy landing package.json and package-lock.json
30+
COPY landing/package.json landing/package-lock.json ./landing/
31+
32+
# Install the landing dependencies and devDependencies
33+
RUN cd landing/ && npm install
34+
2635
# Copy the entire project to the working directory
2736
COPY . .
2837

@@ -35,6 +44,9 @@ RUN npm run build
3544
# Remove development dependencies
3645
RUN npm prune --omit=dev
3746

47+
# We don't need Next.js dependencies since landing is statically exported during build step.
48+
RUN rm -rf landing/node_modules
49+
3850
# Final stage for app image
3951
FROM base
4052

fly.preview.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ app = 'preview-mcp-server-neon'
66
primary_region = 'fra'
77

88
[build]
9-
dockerfile = 'Dockerfile.fly'
9+
dockerfile = 'fly.Dockerfile'
1010

1111
[http_service]
1212
internal_port = 3001

fly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ app = 'mcp-server-neon'
66
primary_region = 'ams'
77

88
[build]
9-
dockerfile = 'Dockerfile.fly'
9+
dockerfile = 'fly.Dockerfile'
1010

1111
[http_service]
1212
internal_port = 3001

landing/tsconfig.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"strict": true,
@@ -23,9 +19,7 @@
2319
}
2420
],
2521
"paths": {
26-
"@/*": [
27-
"./*"
28-
]
22+
"@/*": ["./*"]
2923
}
3024
},
3125
"include": [
@@ -35,7 +29,5 @@
3529
"next-env.d.ts",
3630
"../public/types/**/*.ts"
3731
],
38-
"exclude": [
39-
"node_modules"
40-
]
32+
"exclude": ["node_modules"]
4133
}

0 commit comments

Comments
 (0)