-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
42 lines (30 loc) · 1.01 KB
/
Dockerfile
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
39
40
41
42
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:22.12-alpine AS builder
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN --mount=type=cache,target=/root/.npm npm install --ignore-scripts
# Copy the source code
COPY src ./src
# Copy the TypeScript configuration
COPY tsconfig.json ./
# Build the project
RUN npm run build
FROM node:22-alpine AS release
# Set working directory
WORKDIR /app
# Copy the build output and package files
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json ./
COPY --from=builder /app/package-lock.json ./
# Set environment variables (replace placeholders with actual values)
ENV CONFLUENCE_API_MAIL=your-email
ENV CONFLUENCE_API_KEY=your-key
ENV CONFLUENCE_URL=your-confluence-url
ENV JIRA_URL=your-jira-url
# Install production dependencies
RUN npm ci --omit=dev
# Define the command to run the application
ENTRYPOINT ["node", "build/index.js"]