refactor: séparer executable et library

This commit is contained in:
Victor Lacasse-Beaudoin 2025-05-13 13:48:34 -04:00
parent b3706080cd
commit 2dcf0ec867
11 changed files with 70 additions and 71 deletions

View file

@ -4,15 +4,16 @@ LABEL author="vlbeaudoin"
WORKDIR /go/src/app
COPY LICENSE cmd.go config.go db.go entity.go flag.go go.mod go.sum handler.go main.go server.go ./
COPY LICENSE cmd.go config.go db.go entity.go flag.go go.mod go.sum handler.go server.go ./
ADD cmd/ cmd/
ADD queries/ queries/
ADD ui/ ui/
RUN CGO_ENABLED=0 go build \
-a \
-o presences \
./
./cmd/presences/
# Alpine