Skip to content

Commit 80aab37

Browse files
authored
fix: New e2e images for rabbit and mysql work as expected (#235)
Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz>
1 parent 008ed9b commit 80aab37

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

e2e/images/mysql/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /app/main ./cmd/main
77

88
# final stage
99
FROM gcr.io/distroless/base
10-
WORKDIR /app
11-
COPY --from=builder /app/main /app/main
12-
ENTRYPOINT ["/app/main"]
10+
WORKDIR /
11+
COPY --from=builder /app/main /app
12+
ENTRYPOINT ["/app"]

e2e/images/rabbitmq/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /app/receive ./cmd/r
1616

1717
# final stage
1818
FROM alpine:latest
19-
WORKDIR /app
20-
COPY --from=builder /app/send /app/send
21-
COPY --from=builder /app/receive /app/receive
19+
WORKDIR /
20+
COPY --from=builder /app/send /usr/local/bin/
21+
COPY --from=builder /app/receive /usr/local/bin/
2222

2323
# By default, the image won't do anything.
2424
# The user will specify which binary to run.
25-
CMD ["/app/receive"]
25+
CMD ["receive"]

0 commit comments

Comments
 (0)