mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-27 02:24:43 +03:00
0e4bef339b
Co-authored-by: Cristhian Motoche <cmotoche@stackbuilders.com> Co-authored-by: David Mazarro <dmunuera@stackbuilders.com>
21 lines
534 B
Docker
21 lines
534 B
Docker
FROM utdemir/ghc-musl:v24-ghc902 AS build
|
|
WORKDIR /usr/src/app
|
|
COPY hapistrano.cabal .
|
|
RUN cabal update && \
|
|
cabal build --only-dependencies --enable-static
|
|
COPY . .
|
|
RUN cabal build --enable-executable-static && \
|
|
cp $(cabal exec which hap) hap
|
|
|
|
FROM alpine:3.15
|
|
MAINTAINER Nicolas Vivar <nvivar@stackbuilders.com>
|
|
RUN apk update && \
|
|
apk add \
|
|
ca-certificates \
|
|
git \
|
|
openssh-client
|
|
RUN mkdir ~/.ssh
|
|
COPY --from=build /usr/src/app/hap /usr/local/bin/hap
|
|
ENTRYPOINT ["/usr/local/bin/hap"]
|
|
CMD ["--help"]
|