From f027b99e455819452871c8391dba8c352ed9a6c7 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Sat, 20 Jan 2024 15:22:05 -0500 Subject: [PATCH] [fix] docker cicd build --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7c73b30..e7d58ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,15 @@ RUN apk update && apk add ca-certificates # Build Image FROM golang:1.21 AS build +# Create Package Directory +RUN mkdir -p /opt/antholume + # Copy Source WORKDIR /src COPY . . -# Create Package Directory -RUN mkdir -p /opt/antholume - # Compile +RUN git describe --tags RUN go build \ -ldflags "-X reichard.io/antholume/config.version=`git describe --tags`" \ -o /opt/antholume/server