File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11NODE_ENV = " dev"
22
3+ # Slack API credentials
34SLACK_BOT_TOKEN =
45SLACK_SIGNING_SECRET =
56SLACK_APP_TOKEN =
67
8+ # MongoDB connection URI
79DATABASE_URI =
810
11+ # Google Sheets configuration
912FORM_TRACKER_ID =
1013TRACKER_SHEET_NAME =
1114FORM_INFO_SHEET_NAME =
Original file line number Diff line number Diff line change 2828 - name : Build
2929 run : |-
3030 docker build --tag "cornellappdev/big-red-bot:${{ steps.vars.outputs.sha_short }}" .
31- # Push the Docker image to Google Container Registry
3231 - name : Publish
3332 run : |-
3433 docker push "cornellappdev/big-red-bot:${{ steps.vars.outputs.sha_short }}"
Original file line number Diff line number Diff line change 1- FROM node:24.13.1
1+ # Build stage
2+ FROM node:24.13.1-alpine AS builder
23
3- RUN mkdir /usr/app
44WORKDIR /usr/app
55
6- COPY package.json .
7- COPY package-lock.json .
6+ COPY package.json package-lock.json ./
7+ RUN npm ci --only=production && npm cache clean --force
8+
9+ # Production stage
10+ FROM node:24.13.1-alpine
11+
12+ WORKDIR /usr/app
13+
14+ # Copy dependencies from builder
15+ COPY --from=builder /usr/app/node_modules ./node_modules
16+
17+ # Copy application files
18+ COPY package.json package-lock.json ./
19+ COPY tsconfig.json ./
20+ COPY src ./src
21+
22+ # Run as non-root user
23+ RUN addgroup -g 1001 -S nodejs && \
24+ adduser -S nodejs -u 1001 && \
25+ chown -R nodejs:nodejs /usr/app
26+
27+ USER nodejs
28+
29+ EXPOSE 3000
830
9- RUN npm ci
10- COPY . .
11- EXPOSE 3000 8000
1231CMD ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments