Bump root version to v4

Remove all files from v3

Move all files from v4/ to project root
This commit is contained in:
Victor Lacasse-Beaudoin 2023-05-29 18:19:31 -04:00
parent 3c0d45fa04
commit 9a0bf87e7b
40 changed files with 423 additions and 2130 deletions

View file

@ -1,15 +1,25 @@
FROM golang:1.19
FROM golang:1.20.2 as build
LABEL author="Victor Lacasse-Beaudoin <vlbeaudoin@agecem.org>"
LABEL repo="https://git.agecem.com/agecem/bottin"
LABEL author="vlbeaudoin"
WORKDIR /go/src/app
COPY . .
COPY go.mod go.sum main.go ./
ENV PATH=/go/src/app:$PATH
ADD cmd/ cmd/
ADD data/ data/
ADD handlers/ handlers/
ADD models/ models/
ADD web/ web/
RUN go get -d -v . && \
go install -v .
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bottin .
CMD bottin -h
# Alpine
FROM alpine:latest
WORKDIR /app
COPY --from=build /go/src/app/bottin /usr/bin/bottin
CMD ["bottin", "--help"]