From 81abdc15ae843c99d04a34af58414f7b1a76f621 Mon Sep 17 00:00:00 2001 From: Juan Paucar Date: Sun, 17 Oct 2021 22:29:46 -0500 Subject: [PATCH] Consider new file directory for executable --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38adf38..3bb9100 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,9 @@ RUN cabal configure -f static RUN cabal build hap # Compress the resulting binary -RUN upx /hapistrano/dist/build/hap/hap +RUN mkdir bin +RUN cp /hapistrano/dist-newstyle/build/x86_64-linux/ghc-8.8.4/hapistrano-0.4.3.0/x/hap/build/hap/hap bin/ +RUN upx /hapistrano/bin/hap # Copy Hapistrano to a basic Alpine with SSH FROM alpine:3.13 @@ -55,6 +57,6 @@ RUN apk update \ RUN mkdir ~/.ssh -COPY --from=build-env /hapistrano/dist/build/hap/hap /bin/hap +COPY --from=build-env /hapistrano/bin/hap /bin/hap ENTRYPOINT ["/bin/hap"]