From c86ee4027293ba2516b6aca7c2f16e9dc5870bfe Mon Sep 17 00:00:00 2001 From: mnv Date: Thu, 13 Aug 2020 19:05:55 +0300 Subject: [PATCH] readme, docker --- README.md | 4 ++-- docker/go/Dockerfile | 8 ++++---- install/install.sh | 3 +-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5d891fd..4957f6a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Features - [x] Framework for API: Gin -- [x] Package manager: Govendor +- [x] Package manager: go mod - [x] DI: Based on service container - [x] Layers: Controller->Service->Repository->Entity - [x] Routes: Gin @@ -144,7 +144,7 @@ mcedit .env ### Download vendor packages ```bash -govendor sync +go mod download ``` diff --git a/docker/go/Dockerfile b/docker/go/Dockerfile index 3c1947a..f18ad37 100644 --- a/docker/go/Dockerfile +++ b/docker/go/Dockerfile @@ -2,15 +2,15 @@ FROM golang:1.12.5 WORKDIR /go/src/go-api-boilerplate -RUN go get github.com/kardianos/govendor \ - github.com/go-swagger/go-swagger/cmd/swagger \ +RUN go get github.com/go-swagger/go-swagger/cmd/swagger \ github.com/Altoros/gorm-goose/cmd/gorm-goose COPY ./docker/go/entrypoint.sh ./docker/wait-for-it.sh /root/ RUN chmod 755 /root/entrypoint.sh /root/wait-for-it.sh -COPY vendor/vendor.json vendor/vendor.json -RUN govendor sync +COPY go.mod . +COPY go.sum . +RUN go mod download # Project files COPY . . diff --git a/install/install.sh b/install/install.sh index 6e57a1b..4f022c0 100755 --- a/install/install.sh +++ b/install/install.sh @@ -1,6 +1,5 @@ #!/bin/bash -go get github.com/kardianos/govendor \ - github.com/go-swagger/go-swagger/cmd/swagger \ +go get github.com/go-swagger/go-swagger/cmd/swagger \ github.com/Altoros/gorm-goose/cmd/gorm-goose \ github.com/codegangsta/gin