forked from NightTrek/Software-planning-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 740 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 740 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
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use the official Node.js image.
FROM node:18-alpine
# Set the working directory inside the container.
WORKDIR /app
# Copy over only package.json and pnpm-lock.yaml to install dependencies.
COPY package.json pnpm-lock.yaml ./
# Install pnpm globally and then install dependencies.
RUN npm install -g pnpm && pnpm install --frozen-lockfile
# Copy the rest of the application code.
COPY . .
# Build the application.
RUN pnpm run build
# Change the permissions for the build script to make it executable.
RUN chmod +x build/index.js
# Expose the port the app runs on
EXPOSE 3000
# Command to run the application
ENTRYPOINT ["node", "build/index.js"]