FROM docker.io/library/golang:1.18

LABEL author="Victor Lacasse-Beaudoin <vlbeaudoin@agecem.org>"
LABEL repo="https://git.agecem.com/agecem/bottin-agenda"

WORKDIR /go/src/app

COPY . .

ENV PATH=/go/src/app:$PATH

RUN go get -d -v . && \
    go install -v .

CMD bottin-agenda -h