-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
46 lines (34 loc) · 1.12 KB
/
Dockerfile.dev
File metadata and controls
46 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# syntax=docker/dockerfile:1
# MCP Data Platform Development Dockerfile
#
# Builds the Go binary from source for local development.
# Used by docker-compose.dev.yml
#
# Usage:
# docker compose -f docker-compose.dev.yml up
# Build stage
FROM golang:1.26-alpine AS builder
WORKDIR /src
# Install build dependencies
RUN apk add --no-cache git
# Cache Go modules
COPY go.mod go.sum ./
RUN go mod download
# Copy source and build
COPY . .
RUN CGO_ENABLED=0 go build -o /mcp-data-platform ./cmd/mcp-data-platform
# Runtime stage
FROM alpine:3.23
# Install ca-certificates for TLS and netcat for healthcheck
RUN apk add --no-cache ca-certificates netcat-openbsd
# Copy binary from builder
COPY --from=builder /mcp-data-platform /usr/local/bin/mcp-data-platform
# Copy default config for container environment
COPY configs/mcpapps-container.yaml /etc/mcp-data-platform/config.yaml
# Run as non-root user
RUN adduser -D -u 1000 mcp
USER mcp
# Default command uses container config
# Apps are mounted at /apps via docker-compose volume
ENTRYPOINT ["/usr/local/bin/mcp-data-platform"]
CMD ["--config", "/etc/mcp-data-platform/config.yaml"]