forked from mikepsinn/clickup-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 933 Bytes
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 933 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
34
35
36
37
38
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js base image
FROM node:18-alpine AS builder
# Set the working directory
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Copy the source files and tsconfig BEFORE npm install
COPY src ./src
COPY tsconfig.json ./
# Install dependencies
RUN npm install
# Compile TypeScript to JavaScript
RUN npm run build
# Use a smaller image for the runtime
FROM node:18-alpine AS runtime
# Set the working directory
WORKDIR /app
# Copy the build output and node_modules from the builder stage
COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
# Copy the entrypoint script if necessary
COPY --from=builder /app/package.json ./
# Expose the desired port (if the server binds to a port)
EXPOSE 8080
# Define the command to run the application
CMD ["node", "build/index.js"]