Add version
This commit is contained in:
1 parent
9f25a20a28
commit
adf6a478fe
6 files changed
+10
-6
No files matched your search
+2
-2
@@ -1,13 +1,13 @@
|
||||
FROM golang:1.23.3 AS build
|
||||
WORKDIR /app
|
||||
|
||||
ARG appVersion=""
|
||||
# Copy the source code.
|
||||
COPY . .
|
||||
# Installs Go dependencies
|
||||
RUN go mod download
|
||||
|
||||
# Build
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/pg-bkup
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X 'github.com/jkaninda/pg-bkup/utils.Version=${appVersion}'" -o /app/pg-bkup
|
||||
|
||||
FROM alpine:3.20.3
|
||||
ENV TZ=UTC
|
||||
|
||||
Reference in new issue
Block a user