bottin/Dockerfile

25 lines
362 B
Docker
Raw Normal View History

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