Skip to content

Commit 333804a

Browse files
chore: clean up contianer build files
Signed-off-by: Ricky Moorhouse <[email protected]>
1 parent f9028d6 commit 333804a

File tree

2 files changed

+2
-33
lines changed

2 files changed

+2
-33
lines changed

Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV PATH $PATH:$GOPATH/bin
1212
COPY . .
1313
RUN go mod download
1414

15-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./out/trawler .
15+
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)'" .
1616

1717
FROM registry.access.redhat.com/ubi9/ubi-minimal
1818

@@ -34,4 +34,4 @@ USER 1001:0
3434
EXPOSE 63512
3535
ENV CONFIG_PATH=/app/config/config.yaml
3636

37-
CMD ["/app/trawler"]
37+
CMD ["/app/trawler", "-c", "/app/config/config.yaml"]

Dockerfile

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)