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"]