Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
config: copying existing binary
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Nov 19, 2022
1 parent d453904 commit a4e312f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile.slim.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4e312f

Please sign in to comment.