We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31a69f commit 6f0bc96Copy full SHA for 6f0bc96
debian/Dockerfile
@@ -9,7 +9,8 @@ RUN test -n "${ARCH}" || (echo "Error: ARCH is not set" && exit 1)
9
10
COPY . /app
11
WORKDIR /app
12
-RUN GOOS=linux GOARCH=${ARCH} go build -ldflags "-X 'main.Version=${VERSION}'" -o ${BINARY_NAME} ./cmd/${BINARY_NAME}
+RUN export VERSION=$(echo "${VERSION}" | sed -e "s/^v\(.*\)/\1/") && \
13
+ GOOS=linux GOARCH=${ARCH} go build -ldflags "-X 'main.Version=${VERSION}'" -o ${BINARY_NAME} ./cmd/${BINARY_NAME}
14
15
FROM debian:bookworm AS debian
16
0 commit comments