aboutsummaryrefslogtreecommitdiff
path: root/linux/Dockerfile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-07-24 09:57:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-08-11 21:33:21 -0700
commitc9900278321a14071c6721fdfb702e39ca5e2a38 (patch)
tree1724171740a0569330e7c48d055e13735878a4b4 /linux/Dockerfile
parent5d4932d7ef8e1edec31d99661ffe8e2f4a77244f (diff)
downloadpandoc-c9900278321a14071c6721fdfb702e39ca5e2a38.tar.gz
Linux rc build: use ghc-musl container.
This simplifies our build process a bit (over using a customized alpine container). Use new `--enable-executable-static` flag in build. make_artifacts.sh: Fix deprecated find -perm syntax.
Diffstat (limited to 'linux/Dockerfile')
-rw-r--r--linux/Dockerfile30
1 files changed, 0 insertions, 30 deletions
diff --git a/linux/Dockerfile b/linux/Dockerfile
deleted file mode 100644
index f577d8765..000000000
--- a/linux/Dockerfile
+++ /dev/null
@@ -1,30 +0,0 @@
-# USE ALPINE LINUX
-FROM alpine:3.11
-RUN apk --no-cache add \
- alpine-sdk \
- bash \
- ca-certificates \
- cabal \
- dpkg \
- fakeroot \
- ghc \
- git \
- gmp-dev \
- xz \
- zlib-dev \
- zlib-static
-RUN mkdir -p /usr/src/ && \
- git clone https://github.com/jgm/pandoc /usr/src/pandoc
-WORKDIR /usr/src/pandoc
-CMD cabal --version && \
- ghc --version && \
- git pull && \
- git checkout -b work $TREE && \
- cabal new-update && \
- cabal new-clean && \
- cabal new-configure --enable-tests -f-export-dynamic -fstatic -fembed_data_files -fbibutils --ghc-options '-optc-Os -optl=-pthread -optl=-static -fPIC -split-sections' . pandoc-citeproc && \
- cabal new-build . pandoc-citeproc && \
- cabal new-test -j1 . pandoc-citeproc && \
- for f in $(find dist-newstyle -name 'pandoc*' -type f -perm +400); do cp $f /artifacts/; done && \
- bash linux/make_deb.sh && \
- bash linux/make_tarball.sh