début de réécriture pour v7

This commit is contained in:
Victor Lacasse-Beaudoin 2024-06-06 01:40:56 -04:00
parent 369332db26
commit 6d98375adb
29 changed files with 421 additions and 661 deletions

View file

@ -1,23 +1,20 @@
FROM golang:1.22.0 as build
FROM golang:1.22.3 as build
LABEL author="vlbeaudoin"
WORKDIR /go/src/app
COPY go.mod go.sum main.go ./
COPY go.mod go.sum db.go entity.go main.go responses.go ./
ADD cmd/ cmd/
ADD data/ data/
ADD handlers/ handlers/
ADD models/ models/
ADD responses/ responses/
ADD web/ web/
ADD templates/ templates/
ADD sql/ sql/
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bottin .
RUN CGO_ENABLED=0 go build -a -o bottin .
# Alpine
FROM alpine:3.19
FROM alpine:3.20
WORKDIR /app