Files
docker-images/scribe/example/sender/Dockerfile
T
tiennm99 bd16c305eb feat(scribe): add runnable docker-compose example with Go test sender
Introduces a complete runnable example for the Scribe logging image, featuring:
- docker-compose.yml orchestrating scribe daemon and Go test sender
- Go test sender application (main.go, go.mod, Dockerfile)
- Example README with setup and usage instructions
- Updated scribe/README.md with Runnable Example section
2026-05-27 17:49:02 +07:00

11 lines
266 B
Docker

# Multi-stage build: compile a static binary, ship it on a minimal runtime.
FROM golang:1.22-alpine AS build
WORKDIR /src
COPY go.mod .
COPY main.go .
RUN CGO_ENABLED=0 go build -o /sender .
FROM alpine:3.20
COPY --from=build /sender /sender
ENTRYPOINT ["/sender"]