Fix: smithery deployment
This commit is contained in:
parent
2bb68155f1
commit
f2c5a97f41
|
@ -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 . .
|
||||||
|
|
|
@ -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}
|
||||||
|
})
|
Loading…
Reference in New Issue