chore: exclude test binary on default build

This commit is contained in:
2023-12-18 12:28:14 +00:00
parent 2a4629c017
commit 5679faecdb
3 changed files with 16 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ FROM golang:1.21-alpine as builder
ADD . /root/wingmate
WORKDIR /root/wingmate/
ARG TEST_BUILD
RUN apk add make build-base && CGO_ENABLED=1 make all && make DESTDIR=/usr/local/bin/wingmate install

View File

@@ -2,6 +2,7 @@ FROM golang:1.21-bookworm as builder
ADD . /root/wingmate
WORKDIR /root/wingmate/
ARG TEST_BUILD
RUN make all && make DESTDIR=/usr/local/bin/wingmate install