Compare commits

...

3 Commits

Author SHA1 Message Date
mudler
dfa3728867 chore(mcpbox): use ubuntu:24.04 as base
Signed-off-by: mudler <mudler@localai.io>
2025-04-25 17:06:17 +02:00
Richard Palethorpe
15efd2d527 fix(docker): Add mcpbox server to extended compose files (#84)
Signed-off-by: Richard Palethorpe <io@richiejp.com>
2025-04-25 17:04:06 +02:00
Ettore Di Giacinto
5e3bc0f89b fix(discord): automatically add 'Bot' prefix to token if missing (#83)
Signed-off-by: mudler <mudler@localai.io>
2025-04-25 16:20:29 +02:00
4 changed files with 20 additions and 4 deletions

View File

@@ -20,10 +20,10 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o mcpbox ./cmd/mcpbox
# Final stage
FROM alpine:3.19
FROM ubuntu:22.04
# Install runtime dependencies
RUN apk add --no-cache ca-certificates tzdata docker
RUN apt-get update && apt-get install -y ca-certificates tzdata docker.io bash
# Create non-root user
#RUN adduser -D -g '' appuser

View File

@@ -12,6 +12,11 @@ services:
- /dev/dri/card1
- /dev/dri/renderD129
mcpbox:
extends:
file: docker-compose.yaml
service: mcpbox
localrecall:
extends:
file: docker-compose.yaml

View File

@@ -17,6 +17,11 @@ services:
count: 1
capabilities: [gpu]
mcpbox:
extends:
file: docker-compose.yaml
service: mcpbox
localrecall:
extends:
file: docker-compose.yaml
@@ -30,4 +35,4 @@ services:
localagi:
extends:
file: docker-compose.yaml
service: localagi
service: localagi

View File

@@ -30,9 +30,15 @@ func NewDiscord(config map[string]string) *Discord {
duration = 5 * time.Minute
}
token := config["token"]
if !strings.HasPrefix(token, "Bot ") {
token = "Bot " + token
}
return &Discord{
conversationTracker: NewConversationTracker[string](duration),
token: config["token"],
token: token,
defaultChannel: config["defaultChannel"],
}
}