mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
This commit is contained in:
parent
7506421848
commit
17256ad351
@ -1,11 +1,12 @@
|
|||||||
FROM alpine:3.15.0 AS build
|
FROM alpine:3.15.0 AS build
|
||||||
|
|
||||||
|
ARG CAPROVER_GIT_COMMIT_SHA
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
COPY . /oko-server/git
|
COPY . /oko-server/git
|
||||||
|
|
||||||
RUN apk add --no-cache go && \
|
RUN apk add --no-cache go && \
|
||||||
cd /oko-server/git && \
|
cd /oko-server/git && \
|
||||||
go build -ldflags "-X \"main.sha1ver=$(cat .git/$(cat .git/HEAD | sed 's|ref: ||g'))\" -X \"main.buildTime=$(date -Iseconds)\""
|
go build -ldflags "-X \"main.sha1ver=${CAPROVER_GIT_COMMIT_SHA:-$(cat .git/$(cat .git/HEAD | sed 's|ref: ||g'))}\" -X \"main.buildTime=$(date -Iseconds)\""
|
||||||
|
|
||||||
FROM alpine:3.15.0
|
FROM alpine:3.15.0
|
||||||
WORKDIR /oko-server
|
WORKDIR /oko-server
|
||||||
|
Loading…
Reference in New Issue
Block a user