Skip to content
Snippets Groups Projects
Commit 5225bc57 authored by Jose Carlos Luna Duran's avatar Jose Carlos Luna Duran
Browse files

Fixed version injection

parent e854e15f
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ RUN wget https://www.musl-libc.org/releases/musl-${MUSL_VERSION}.tar.gz && \
make && make install
COPY . /build
RUN cd /build; CGO_ENABLED=1 CC=/usr/local/musl/bin/musl-gcc go build --ldflags '-X main.Version=${VERSION} -linkmode external -extldflags=-static'
RUN cd /build; CGO_ENABLED=1 CC=/usr/local/musl/bin/musl-gcc go build --ldflags "-X main.version=${VERSION} -linkmode external -extldflags=-static"
RUN strip /build/gocanary
FROM scratch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment