mirror of
https://github.com/v1k45/pastepass.git
synced 2026-01-03 11:45:46 +00:00
Add version information to docker image
This commit is contained in:
@@ -6,7 +6,8 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . ./
|
||||
RUN CGO_ENABLED=0 go build -o /out/pastepass main.go
|
||||
ARG VERSION=0.00-dev
|
||||
RUN CGO_ENABLED=0 go build -o /out/pastepass -ldflags "-X 'github.com/v1k45/pastepass/config.Version=$VERSION'"
|
||||
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
Reference in New Issue
Block a user