* Add tools for creating, retrieving, updating, and deleting thoughts. * Implement project management tools for creating and listing projects. * Introduce linking functionality between thoughts. * Add search and recall capabilities for thoughts based on semantic queries. * Implement statistics and summarization tools for thought analysis. * Create database migrations for thoughts, projects, and links. * Add helper functions for UUID parsing and project resolution.
31 lines
642 B
Docker
31 lines
642 B
Docker
FROM golang:1.26.1-bookworm AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/amcs-server ./cmd/amcs-server
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& useradd --system --create-home --uid 10001 appuser
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /out/amcs-server /app/amcs-server
|
|
COPY --chown=appuser:appuser configs /app/configs
|
|
|
|
USER appuser
|
|
|
|
EXPOSE 8080
|
|
|
|
ENV OB1_CONFIG=/app/configs/docker.yaml
|
|
|
|
ENTRYPOINT ["/app/amcs-server"]
|