deployment: déplacer compose.yaml et Dockerfile vers racine
Plus standard si focus user experience
This commit is contained in:
parent
a7a2e522f6
commit
a546db566b
2 changed files with 1 additions and 3 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM golang:1.23 as build
|
||||
|
||||
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 ./
|
||||
|
||||
ADD queries/ queries/
|
||||
ADD ui/ ui/
|
||||
|
||||
RUN CGO_ENABLED=0 go build \
|
||||
-a \
|
||||
-o agendas \
|
||||
./
|
||||
|
||||
# Alpine
|
||||
|
||||
FROM alpine:3.20 as run
|
||||
|
||||
COPY --from=build /go/src/app/agendas /usr/bin/agendas
|
||||
|
||||
CMD ["agendas", "help"]
|
Loading…
Add table
Add a link
Reference in a new issue