Skip to content

Commit 77dded6

Browse files
committed
fix: copy ols binary from correct path
1 parent 6bad5ea commit 77dded6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ COPY . .
5050
# Build simulation
5151
WORKDIR /build/simulation
5252
RUN cabal update && \
53-
cabal build all
53+
cabal build all && \
54+
# Find the actual binary path and copy it to a known location
55+
find /build/dist-newstyle -type f -name "ols" -exec cp {} /build/ols \;
5456

5557
# Create Rust simulation image
5658
FROM base AS rs
@@ -86,7 +88,7 @@ FROM base AS hs
8688
WORKDIR /output
8789

8890
# Copy the ols binary and necessary files
89-
COPY --from=hs-builder /build/dist-newstyle/build/aarch64-linux/ghc-9.8.2/ouroboros-leios-sim-0.1.0.0/x/ols/build/ols/ols /usr/local/bin/
91+
COPY --from=hs-builder /build/ols /usr/local/bin/
9092

9193
# Create entrypoint script for Haskell simulation
9294
RUN echo '#!/bin/sh\n\

0 commit comments

Comments
 (0)