-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 866 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (25 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# syntax=docker/dockerfile:1
# Build stage
FROM node:24-alpine AS build
WORKDIR /app
# Install dependencies
COPY mcp-server/package.json mcp-server/package-lock.json ./
RUN npm ci --production=false
# Copy source code
COPY mcp-server/tsconfig.json mcp-server/tsdown.config.ts ./
COPY mcp-server/assets ./assets
COPY mcp-server/src ./src
# Build the project
RUN npm run build
# Runtime stage
FROM node:20-alpine AS runtime
WORKDIR /app
# Copy build artifacts and dependencies
COPY --from=build /app/dist ./dist
COPY --from=build /app/assets ./assets
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/node_modules ./node_modules
# Default API URL environment variable
ENV CURRENTS_API_URL=https://api.currents.dev
ENTRYPOINT ["node", "dist/index.mjs"]