Refactor du projet réduire le nombre de packages et sous-dossiers #200
1 changed files with 1 additions and 21 deletions
22
Dockerfile
22
Dockerfile
|
@ -6,34 +6,14 @@ LABEL author="Victor Lacasse-Beaudoin <vlbeaudoin@agecem.org>"
|
|||
|
||||
WORKDIR /go/src/app
|
||||
|
||||
COPY go.mod go.sum main.go ./
|
||||
COPY go.mod go.sum main.go client.go cmd.go config.go entity.go handler.go media.go request.go response.go ./
|
||||
|
||||
ADD public/ public/
|
||||
|
||||
ADD cmd/ cmd/
|
||||
|
||||
ADD api/ api/
|
||||
|
||||
ADD apihandler/ apihandler/
|
||||
|
||||
ADD apirequest/ apirequest/
|
||||
|
||||
ADD apiresponse/ apiresponse/
|
||||
|
||||
ADD config/ config/
|
||||
|
||||
ADD media/ media/
|
||||
|
||||
ADD models/ models/
|
||||
|
||||
ADD templates/ templates/
|
||||
|
||||
ADD version/ version/
|
||||
|
||||
ADD webhandler/ webhandler/
|
||||
|
||||
Add webresponse/ webresponse/
|
||||
|
||||
RUN CGO_ENABLED=0 go build -a -o agecem-org -ldflags="-X 'git.agecem.com/agecem/agecem-org/version.version=$agecem_org_version'" .
|
||||
|
||||
# Alpine
|
||||
|
|
Loading…
Reference in a new issue