This commit is contained in:
parent
f0a2d2cf69
commit
f027b99e45
@ -5,14 +5,15 @@ RUN apk update && apk add ca-certificates
|
|||||||
# Build Image
|
# Build Image
|
||||||
FROM golang:1.21 AS build
|
FROM golang:1.21 AS build
|
||||||
|
|
||||||
|
# Create Package Directory
|
||||||
|
RUN mkdir -p /opt/antholume
|
||||||
|
|
||||||
# Copy Source
|
# Copy Source
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Create Package Directory
|
|
||||||
RUN mkdir -p /opt/antholume
|
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
|
RUN git describe --tags
|
||||||
RUN go build \
|
RUN go build \
|
||||||
-ldflags "-X reichard.io/antholume/config.version=`git describe --tags`" \
|
-ldflags "-X reichard.io/antholume/config.version=`git describe --tags`" \
|
||||||
-o /opt/antholume/server
|
-o /opt/antholume/server
|
||||||
|
Loading…
Reference in New Issue
Block a user