-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (35 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM debian:stretch
LABEL "name"="Cabal"
LABEL "maintainer"="GitHub Actions <[email protected]>"
LABEL "version"="0.1.0"
LABEL "com.github.actions.name"="Cabal"
LABEL "com.github.actions.description"="Runs cabal"
LABEL "com.github.actions.icon"="git-pull-request"
LABEL "com.github.actions.color"="purple"
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PATH=/root/.cabal/bin:/opt/ghc/bin:$PATH
RUN apt-get update && \
apt-get install -y \
gnupg \
libtinfo-dev \
&& \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
RUN echo "deb https://downloads.haskell.org/debian stretch main" >> /etc/apt/sources.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA3CBA3FFE22B574 && \
apt-get update && \
apt-get install -y \
ghc-8.6.3 \
cabal-install-2.4 && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Buggy versions of ld.bfd fail to link some Haskell packages: https://sourceware.org/bugzilla/show_bug.cgi?id=17689.
# Gold is faster anyways and uses less RAM.
RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 && \
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
COPY LICENSE README.md THIRD_PARTY_NOTICE.md /
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]