Fix: smithery deployment

This commit is contained in:
Barry Yip 2025-06-07 23:29:47 +08:00
parent 2bb68155f1
commit f2c5a97f41
2 changed files with 9 additions and 6 deletions

View File

@ -7,8 +7,8 @@ WORKDIR /app
# Copy package files # Copy package files
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
# Install dependencies without running scripts # Install dependencies
RUN npm install --ignore-scripts RUN npm ci
# Copy source code # Copy source code
COPY . . COPY . .

View File

@ -7,7 +7,10 @@ startCommand:
properties: properties:
discordToken: discordToken:
type: string type: string
description: The bot token for Discord integration. description: "The bot token for Discord integration."
commandFunction: commandFunction: |
|- config => ({
config => ({command: 'node', args: ['./build/index.js', '--transport', 'http', '--port', '8080'], env: {DISCORD_TOKEN: config.discordToken}}) command: 'node',
args: ['./build/index.js', '--transport', 'http', '--port', '8080'],
env: {DISCORD_TOKEN: config.discordToken}
})