We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The source code build parameters set during the Dockerfile build do not override the values defined in the Dockerfile's ARG.
What I want is docker build --build-arg APP_VERSION=1.0.1 -t xxx
Screenshots
FROM golang:1.19-alpine AS builder LABEL stage=gobuilder ARG APP_VERSION=unknown ENV CGO_ENABLED 0 ENV GOPROXY https://goproxy.cn,direct RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ && apk update --no-cache && apk add --no-cache tzdata WORKDIR /build COPY go.mod . COPY go.sum . RUN go mod download COPY . . RUN go build -v -ldflags="-w -s -X 'tyskins/cmd.AppVersion=${APP_VERSION}'" -tags=jsoniter -o app . FROM alpine COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai ENV TZ Asia/Shanghai WORKDIR /app COPY --from=builder /app/app /app/app COPY --from=builder /build/static /app/public EXPOSE 9000 CMD ["./app", "-c", "conf/config.toml"]
The relevant information: -Rainbond版本[v5.14.1] -Kubernetes版本[1.23.10]
The text was updated successfully, but these errors were encountered:
修复了吗
Sorry, something went wrong.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Has it been fixed?
近期安排修复
Repair scheduled in the near future
#1816
ZhangSetSail
No branches or pull requests
Describe the bug
The source code build parameters set during the Dockerfile build do not override the values defined in the Dockerfile's ARG.
What I want is
docker build --build-arg APP_VERSION=1.0.1 -t xxx
Screenshots
The relevant information:
-Rainbond版本[v5.14.1]
-Kubernetes版本[1.23.10]
The text was updated successfully, but these errors were encountered: