Files
aml/Dockerfile
T
zeekay a83ac6e1be chore: migration, Dockerfile, compose.yml, Makefile
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.
2026-03-03 10:00:00 -07:00

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"]