This repository was archived by the owner on Mar 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM golang:1.18
22
33EXPOSE 3000
4-
5- ENV GOPROXY=https://proxy.golang.org
4+ ARG DOCKER_TAG
65
76RUN apt-get update \
87 && apt-get install -y -q build-essential sqlite3 libsqlite3-dev postgresql libpq-dev vim
@@ -32,7 +31,7 @@ RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.s
3231# Installing buffalo binary
3332WORKDIR /cli
3433ADD . .
35- RUN go install ./ cmd/buffalo
34+ RUN go install -ldflags="-X 'github.com/gobuffalo/cli/internal/runtime.Version=${DOCKER_TAG}'" ./ cmd/buffalo
3635
3736WORKDIR /
3837RUN go install github.com/gobuffalo/buffalo-pop/v3@latest
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM golang:1.18-alpine
22
33EXPOSE 3000
44
5- ENV GOPROXY=https://proxy.golang.org
5+ ARG DOCKER_TAG
66
77RUN apk add --no-cache --upgrade apk-tools \
88 && apk add --no-cache bash curl openssl git build-base nodejs npm sqlite sqlite-dev mysql-client vim postgresql libpq postgresql-contrib libc6-compat
@@ -19,7 +19,7 @@ RUN npm i -g --no-progress yarn \
1919# Installing buffalo binary
2020WORKDIR /cli
2121ADD . .
22- RUN go install ./ cmd/buffalo
22+ RUN go install -ldflags="-X 'github.com/gobuffalo/cli/internal/runtime.Version=${DOCKER_TAG}'" ./ cmd/buffalo
2323
2424WORKDIR /
2525RUN go install github.com/gobuffalo/buffalo-pop/v3@latest
Original file line number Diff line number Diff line change 11package runtime
22
33// Version is the current version of the buffalo binary
4- var Version = "v0.18.7 "
4+ var Version = "v0.18.9 "
You can’t perform that action at this time.
0 commit comments