mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
* API endpoint * dockerfile adds commit hash and build time during build
This commit is contained in:
+2
-2
@@ -3,9 +3,9 @@ FROM alpine:3.15.0 AS build
|
||||
VOLUME ["/data"]
|
||||
COPY . /oko-server/git
|
||||
|
||||
RUN apk add --no-cache go && \
|
||||
RUN apk add --no-cache go git && \
|
||||
cd /oko-server/git && \
|
||||
go build
|
||||
go build -ldflags "-X \"main.sha1ver=$(git rev-parse HEAD)\" -X \"main.buildTime=$(date -Iseconds)\""
|
||||
|
||||
FROM alpine:3.15.0
|
||||
WORKDIR /oko-server
|
||||
|
||||
Reference in New Issue
Block a user