Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Ship a subset of Stackage LTS packages in the pre-built Docker image (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrorJack authored Dec 3, 2019
1 parent 1777faf commit 8303131
Show file tree
Hide file tree
Showing 5 changed files with 2,577 additions and 7 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ jobs:
- checkout
- run:
name: Make Docker image
no_output_timeout: 5h
command: |
git submodule update --init --recursive
export ASTERIUS_REV=$(git rev-parse --short HEAD)
Expand Down
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.git
.stack-work
**/.git
**/.stack-work
**/stack.yaml.lock
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COPY inline-js/inline-js-core /root/asterius/inline-js/inline-js-core
COPY npm-utils /root/asterius/npm-utils
COPY wabt /root/asterius/wabt
COPY wasm-toolkit /root/asterius/wasm-toolkit
COPY lts.sh /root/asterius/lts.sh
COPY stack.yaml /root/asterius/stack.yaml
ENV \
DEBIAN_FRONTEND=noninteractive \
Expand Down Expand Up @@ -45,6 +46,10 @@ RUN \
curl -L https://downloads.haskell.org/~cabal/cabal-install-latest/cabal-install-3.0.0.0-x86_64-unknown-linux.tar.xz | tar xJ -C /root/.local/bin 'cabal' && \
stack --no-terminal install asterius && \
stack --no-terminal exec ahc-boot && \
export ASTERIUS_LIB_DIR=$(stack path --local-install-root)/share/x86_64-linux-ghc-8.6.5/asterius-0.0.1/.boot/asterius_lib && \
cp ghc-toolkit/boot-libs/cabal.config . && \
stack --no-terminal exec ./lts.sh && \
rm cabal.config && \
apt purge -y \
automake \
cmake \
Expand Down
Loading

0 comments on commit 8303131

Please sign in to comment.