mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-12-24 12:05:35 +03:00
Consider new file directory for executable
This commit is contained in:
parent
61631efafe
commit
81abdc15ae
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user