-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 781 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
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-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/tsconfig.cjs.json ./
COPY mcp-server/scripts ./scripts
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/build ./build
COPY --from=build /app/node_modules ./node_modules
# Default API URL environment variable
ENV CURRENTS_API_URL=https://api.currents.dev
ENTRYPOINT ["node", "build/index.js"]