mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-05-27 14:16:01 +02:00
Release prep: 54 engines, self-hosted signatures, i18n, dashboard updates
This commit is contained in:
parent
694e32be26
commit
41cbfd6e0a
178 changed files with 36008 additions and 399 deletions
38
Dockerfile
Normal file
38
Dockerfile
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Syntrex GoMCP — Multi-stage build
|
||||
|
||||
# ─── Build stage ────────────────────────────────────
|
||||
FROM golang:1.25-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata
|
||||
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Build static binary (modernc/sqlite = pure Go, no CGO needed).
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /gomcp ./cmd/gomcp
|
||||
|
||||
# ─── Runtime stage ──────────────────────────────────
|
||||
FROM alpine:3.20
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
RUN addgroup -S syntrex && adduser -S syntrex -G syntrex
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /gomcp /app/gomcp
|
||||
|
||||
# Create data directory for SQLite + RLM
|
||||
RUN mkdir -p /data/.rlm && chown -R syntrex:syntrex /data
|
||||
|
||||
USER syntrex
|
||||
|
||||
EXPOSE 9750
|
||||
|
||||
ENV RLM_DIR=/data/.rlm
|
||||
ENV GOMCP_HTTP_PORT=9750
|
||||
|
||||
ENTRYPOINT ["/app/gomcp"]
|
||||
CMD ["--http-port", "9750"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue