Update Dockerfile

This commit is contained in:
RamiBerm 2021-05-10 13:56:51 +03:00
parent 40dc62c3bd
commit c4d44ba9d3

View File

@ -19,7 +19,7 @@ WORKDIR /api-build
COPY api/go.mod api/go.sum ./
RUN go mod download
# cheap trick to make the build faster (As long as go.mod wasn't changes)
RUN go list -f '{{.Path}}@{{.Version}}' -m all | sed 1d | xargs go get
RUN go list -f '{{.Path}}@{{.Version}}' -m all | sed 1d | grep -e 'go-cache' -e 'sqlite' | xargs go get
# Copy and build api code
COPY api .