mirror of
https://github.com/luxfi/aml.git
synced 2026-09-24 00:25:20 +00:00
9-table SQLite migration (transactions, entities, rules, alerts, cases, case_events, sanctions_lists, sanctions_entries, webhooks). Multi-stage Dockerfile producing single amld binary. compose.yml with mounted data volume. Makefile with build/test/run/clean targets.
16 lines
464 B
Docker
16 lines
464 B
Docker
FROM golang:1.26-alpine AS build
|
|
RUN apk add --no-cache gcc musl-dev
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=1 go build -ldflags="-s -w -X main.version=$(git describe --tags --always 2>/dev/null || echo dev)" -o /app/amld ./cmd/amld/
|
|
|
|
FROM alpine:3.21
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
COPY --from=build /app/amld /app/amld
|
|
WORKDIR /data
|
|
EXPOSE 8090
|
|
ENTRYPOINT ["/app/amld"]
|
|
CMD ["serve", "--http=0.0.0.0:8090"]
|