We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9028d6 commit 333804aCopy full SHA for 333804a
Containerfile
@@ -12,7 +12,7 @@ ENV PATH $PATH:$GOPATH/bin
12
COPY . .
13
RUN go mod download
14
15
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./out/trawler .
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./out/trawler -ldflags="-X 'main.Version=$(git describe --tags)' -X 'main.BuildTime=$(date +%Y%m%dT%H%M)'" .
16
17
FROM registry.access.redhat.com/ubi9/ubi-minimal
18
@@ -34,4 +34,4 @@ USER 1001:0
34
EXPOSE 63512
35
ENV CONFIG_PATH=/app/config/config.yaml
36
37
-CMD ["/app/trawler"]
+CMD ["/app/trawler", "-c", "/app/config/config.yaml"]
Dockerfile
0 commit comments