refactor: séparer executable et library
This commit is contained in:
parent
b3706080cd
commit
2dcf0ec867
11 changed files with 70 additions and 71 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue