Consider new file directory for executable

This commit is contained in:
Juan Paucar 2021-10-17 22:29:46 -05:00
parent 61631efafe
commit 81abdc15ae

View File

@ -42,7 +42,9 @@ RUN cabal configure -f static
RUN cabal build hap RUN cabal build hap
# Compress the resulting binary # 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 # Copy Hapistrano to a basic Alpine with SSH
FROM alpine:3.13 FROM alpine:3.13
@ -55,6 +57,6 @@ RUN apk update \
RUN mkdir ~/.ssh 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"] ENTRYPOINT ["/bin/hap"]