Skip to content

Commit

Permalink
Fix docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyEv committed Feb 12, 2022
1 parent 2df2fce commit 97df39f
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
FROM haskell:8.10 as builder
RUN cabal update

FROM builder as hlint-installer

RUN cabal install hlint
# hadolint ignore=DL3059
RUN /bin/bash -c "cp $(readlink -f /root/.cabal/bin/hlint) /bin/hlint"

FROM builder as stylish-haskell-installer

RUN cabal install stylish-haskell
# hadolint ignore=DL3059
RUN /bin/bash -c "cp $(readlink -f /root/.cabal/bin/stylish-haskell) /bin/stylish-haskell"


FROM haskell:8.10 as hlint
COPY --from=hlint-installer /bin/hlint /bin/hlint
ENTRYPOINT ["/bin/hlint"]

RUN cabal update && cabal install hlint
ENTRYPOINT ["hlint"]

FROM haskell:8.10 as stylish-haskell

RUN cabal update && cabal install stylish-haskell
ENTRYPOINT ["stylish-haskell"]
COPY --from=stylish-haskell-installer /bin/stylish-haskell /bin/stylish-haskell
ENTRYPOINT ["/bin/stylish-haskell"]

0 comments on commit 97df39f

Please sign in to comment.