mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-16 09:53:12 +00:00
- Moved readers to the config package - Added an option to read remote config files - Moved the validation package to the config package and removed the validator dependency - Moved the customerrors package to the config package - Replaced fatih/color with jedib0t/go-pretty/v6/text - Removed proxy check functionality - Added param, header, cookie, body, and proxy flags to the CLI - Allowed multiple values for the same key in params, headers, and cookies
19 lines
357 B
Docker
19 lines
357 B
Docker
FROM golang:1.24-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
|
|
RUN go build -ldflags "-s -w" -o dodo
|
|
RUN echo "{}" > config.json
|
|
|
|
FROM gcr.io/distroless/static-debian12:latest
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /src/dodo /dodo
|
|
COPY --from=builder /src/config.json /config.json
|
|
|
|
ENTRYPOINT ["./dodo", "-f", "/config.json"] |