Skip to content

Commit

Permalink
Fix traffic-generator build target
Browse files Browse the repository at this point in the history
  • Loading branch information
pschork committed Sep 14, 2024
1 parent f1ad947 commit d99a1c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ target "traffic-generator" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./trafficgenerator.Dockerfile"
target = "traffic-generator"
target = "generator"
}

target "dataapi" {
Expand Down
4 changes: 2 additions & 2 deletions trafficgenerator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -o ./bin/generator ./cmd

FROM alpine:3.18
FROM alpine:3.18 as generator

COPY --from=builder /app/tools/traffic/bin/generator /usr/local/bin

ENTRYPOINT ["generator"]
ENTRYPOINT ["generator"]

0 comments on commit d99a1c6

Please sign in to comment.