This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
bottin/Dockerfile

26 lines
382 B
Text
Raw Normal View History

FROM golang:1.20.2 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 main.go ./
2023-03-06 14:01:18 -05:00
ADD cmd/ cmd/
ADD data/ data/
ADD handlers/ handlers/
ADD models/ models/
ADD web/ web/
2023-03-06 14:01:18 -05:00
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bottin .
2023-03-06 14:01:18 -05:00
# Alpine
FROM alpine:latest
WORKDIR /app
COPY --from=build /go/src/app/bottin /usr/bin/bottin
CMD ["bottin", "--help"]