Ajouter cobra/viper pour gérer le cli
Déplacer logique de server.go vers serverCmd Ajouter .cobra.yaml pour prochaines commandes Modifier Dockerfile pour appeler serverCmd Retirer certains commentaires dans serverCmd
This commit is contained in:
parent
643100f325
commit
378db992b5
7 changed files with 578 additions and 12 deletions
|
@ -4,10 +4,12 @@ LABEL author="vlbeaudoin"
|
|||
|
||||
WORKDIR /go/src/app
|
||||
|
||||
COPY go.mod go.sum main.go server.go ./
|
||||
COPY go.mod go.sum main.go ./
|
||||
|
||||
ADD public/ public/
|
||||
|
||||
ADD cmd/ cmd/
|
||||
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o agecem-org .
|
||||
|
||||
# Alpine
|
||||
|
@ -20,4 +22,4 @@ WORKDIR /app
|
|||
|
||||
COPY --from=build /go/src/app/agecem-org /usr/bin/agecem-org
|
||||
|
||||
CMD ["agecem-org"]
|
||||
CMD ["agecem-org", "server"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue