[fix] docker cicd build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Evan Reichard 2024-01-20 15:22:05 -05:00
parent f0a2d2cf69
commit f027b99e45

View File

@ -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