add one-time process, attach to UI the mcp server json configuration

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2025-04-23 18:28:54 +02:00
parent 0e1106eaf5
commit bd903a3f33
4 changed files with 302 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
# Build stage
FROM golang:1.21-alpine AS builder
FROM golang:1.24-alpine AS builder
# Install build dependencies
RUN apk add --no-cache git
@@ -23,10 +23,10 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o mcpbox ./cmd/mcpbox
FROM alpine:3.19
# Install runtime dependencies
RUN apk add --no-cache ca-certificates tzdata
RUN apk add --no-cache ca-certificates tzdata docker
# Create non-root user
RUN adduser -D -g '' appuser
#RUN adduser -D -g '' appuser
# Set working directory
WORKDIR /app
@@ -35,7 +35,7 @@ WORKDIR /app
COPY --from=builder /app/mcpbox .
# Use non-root user
USER appuser
#USER appuser
# Expose port
EXPOSE 8080