Skip to content

Commit 45ffa78

Browse files
committed
make tracer sidecard slimmer
1 parent 7c0b122 commit 45ffa78

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compose/tracer-sidecar/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM haskell:9.6
1+
FROM haskell:9.6 AS build
22

33
WORKDIR /opt/tracer-sidecar
44

@@ -16,4 +16,8 @@ RUN cabal build --only-dependencies -j4
1616
COPY . /opt/tracer-sidecar
1717
RUN cabal install
1818

19-
CMD ["tracer-sidecar", "/opt/cardano-tracer"]
19+
FROM docker.io/debian:stable-slim AS main
20+
21+
COPY --from=build /root/.local/bin/tracer-sidecar /usr/local/bin/tracer-sidecar
22+
23+
CMD ["/usr/local/tracer-sidecar", "/opt/cardano-tracer"]

0 commit comments

Comments
 (0)