Support Cabal 3. Man page no longer autobuilds.

This commit is contained in:
Vidar Holen
2019-11-16 10:44:48 -08:00
parent 874bdcb514
commit 2c026f1ec7
4 changed files with 9 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
# Build-only image
FROM ubuntu:18.04 AS build
FROM ubuntu:19.10 AS build
USER root
WORKDIR /opt/shellCheck
@@ -12,7 +12,7 @@ COPY ShellCheck.cabal ./
RUN cabal update && cabal install --dependencies-only --ghc-options="-optlo-Os -split-sections"
# Copy source and build it
COPY LICENSE Setup.hs shellcheck.hs ./
COPY LICENSE shellcheck.hs ./
COPY src src
RUN cabal build Paths_ShellCheck && \
ghc -optl-static -optl-pthread -isrc -idist/build/autogen --make shellcheck -split-sections -optc-Wl,--gc-sections -optlo-Os && \