Update Haskell image and use stable Debian slim
This commit is contained in:
parent
a51b94913a
commit
45d28eb237
1 changed files with 8 additions and 5 deletions
|
@ -1,14 +1,17 @@
|
||||||
FROM debian:stretch
|
FROM debian:stable-slim
|
||||||
LABEL author="1Computer1"
|
LABEL author="1Computer1"
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends gnupg dirmngr && \
|
apt-get install -y --no-install-recommends gnupg dirmngr ca-certificates && \
|
||||||
echo 'deb http://downloads.haskell.org/debian stretch main' > /etc/apt/sources.list.d/ghc.list && \
|
echo 'deb https://downloads.haskell.org/debian stretch main' > /etc/apt/sources.list.d/ghc.list && \
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA3CBA3FFE22B574 && \
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA3CBA3FFE22B574 && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends ghc-8.6.5
|
apt-get install -y --no-install-recommends ghc-9.0.1 && \
|
||||||
|
apt-get purge -y gnupg dirmngr ca-certificates && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
apt-get autoclean -y
|
||||||
|
|
||||||
ENV PATH /opt/ghc/8.6.5/bin:$PATH
|
ENV PATH /opt/ghc/9.0.1/bin:$PATH
|
||||||
|
|
||||||
COPY run.sh /var/run/
|
COPY run.sh /var/run/
|
||||||
|
|
Loading…
Reference in a new issue