Skip to content

Commit 85d9e96

Browse files
committed
dockerfile
1 parent b6e7dd1 commit 85d9e96

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ----- Build Stage -----
2+
FROM node:lts-alpine AS builder
3+
WORKDIR /app
4+
5+
# Copy package and configuration
6+
COPY package.json pnpm-lock.yaml tsconfig.json ./
7+
8+
# Copy source code
9+
COPY src ./src
10+
11+
# Install dependencies and build
12+
RUN corepack enable && pnpm install --frozen-lockfile && pnpm build
13+
14+
# ----- Production Stage -----
15+
FROM node:lts-alpine
16+
WORKDIR /app
17+
18+
# Copy built artifacts and required files
19+
COPY --from=builder /app/dist ./dist
20+
COPY index.js config.d.ts index.d.ts cli.js ./
21+
22+
# Expose HTTP port
23+
EXPOSE 8080
24+
25+
# Default command using CLI flags
26+
CMD ["node", "cli.js", "--port", "8080"]

smithery.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
runtime: "typescript"
22
build:
33
dockerfile: "Dockerfile"
4-
dockerBuildPath: "."
4+
dockerBuildPath: "."
5+
dockerfilePath: "./Dockerfile"

0 commit comments

Comments
 (0)