2024-09-03 17:01:34 -04:00
|
|
|
FROM golang:1.23.0 as build
|
2023-03-06 14:01:18 -05:00
|
|
|
|
2023-05-29 18:19:31 -04:00
|
|
|
LABEL author="vlbeaudoin"
|
2023-03-06 14:01:18 -05:00
|
|
|
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
|
2024-09-18 19:06:33 -04:00
|
|
|
COPY go.mod go.sum LICENSE ./
|
2023-03-06 14:01:18 -05:00
|
|
|
|
2024-09-18 19:06:33 -04:00
|
|
|
ADD cmd/ cmd/
|
|
|
|
ADD pkg/ pkg/
|
|
|
|
ADD queries/ queries/
|
2024-06-06 16:28:14 -04:00
|
|
|
ADD templates/ templates/
|
2023-03-06 14:01:18 -05:00
|
|
|
|
2024-09-18 19:06:33 -04:00
|
|
|
RUN CGO_ENABLED=0 go build -a -o bottin ./cmd/bottin
|
2023-03-06 14:01:18 -05:00
|
|
|
|
2023-05-29 18:19:31 -04:00
|
|
|
# Alpine
|
|
|
|
|
2024-09-03 17:06:10 -04:00
|
|
|
FROM alpine:3.20.2
|
2023-05-29 18:19:31 -04:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY --from=build /go/src/app/bottin /usr/bin/bottin
|
|
|
|
|
|
|
|
CMD ["bottin", "--help"]
|