diff --git a/Dockerfile.build b/Dockerfile.build index a8bfd194..a6c443df 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -29,9 +29,7 @@ RUN npm install -g --no-progress yarn \ RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0 # Installing buffalo binary -WORKDIR /cli -ADD . . -RUN go install -ldflags="-X 'github.com/gobuffalo/cli/internal/runtime.Version=$DOCKER_TAG'" ./cmd/buffalo +COPY buffalo /go/bin/buffalo WORKDIR / RUN go install github.com/gobuffalo/buffalo-pop/v3@latest diff --git a/Dockerfile.slim.build b/Dockerfile.slim.build index 5f12ac02..0dbd024d 100644 --- a/Dockerfile.slim.build +++ b/Dockerfile.slim.build @@ -17,9 +17,7 @@ RUN npm i -g --no-progress yarn \ && yarn config set yarn-offline-mirror-pruning true # Installing buffalo binary -WORKDIR /cli -ADD . . -RUN go install -ldflags="-X 'github.com/gobuffalo/cli/internal/runtime.Version=$DOCKER_TAG'" ./cmd/buffalo +COPY buffalo /go/bin/buffalo WORKDIR / RUN go install github.com/gobuffalo/buffalo-pop/v3@latest