Compare commits
2 Commits
opencollec
...
docker
| Author | SHA1 | Date | |
|---|---|---|---|
|
4ffbffb40a
|
|||
|
3a58458c7d
|
@@ -10,7 +10,6 @@ Similar in scope to [rustup](https://github.com/rust-lang-nursery/rustup.rs), [p
|
||||
[](https://app.element.io/#/room/#haskell-tooling:matrix.org)
|
||||
[](https://discord.gg/pKYf3zDQU7)
|
||||
[](https://gitter.im/haskell/ghcup?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
<a href="https://opencollective.com/ghcup#category-CONTRIBUTE"><img src="https://opencollective.com/webpack/donate/button@2x.png?color=blue" alt="Donate" width="150"></a>
|
||||
|
||||
* [Installation](#installation)
|
||||
* [Simple bootstrap](#simple-bootstrap)
|
||||
|
||||
32
docker/alpine/3.14.2/8.10.7/Dockerfile
Normal file
32
docker/alpine/3.14.2/8.10.7/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM alpine:3.14.2
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
binutils \
|
||||
binutils-gold \
|
||||
gmp \
|
||||
ncurses \
|
||||
libffi \
|
||||
make \
|
||||
xz \
|
||||
tar \
|
||||
perl
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup install ghc --set 8.10.7 && \
|
||||
ghcup install cabal latest && \
|
||||
ghcup install stack latest
|
||||
30
docker/alpine/3.14.2/minimal/Dockerfile
Normal file
30
docker/alpine/3.14.2/minimal/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM alpine:3.14.2
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
binutils \
|
||||
binutils-gold \
|
||||
gmp \
|
||||
ncurses \
|
||||
libffi \
|
||||
make \
|
||||
xz \
|
||||
tar \
|
||||
perl
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup prefetch metadata
|
||||
32
docker/alpine/latest/8.10.7/Dockerfile
Normal file
32
docker/alpine/latest/8.10.7/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
binutils \
|
||||
binutils-gold \
|
||||
gmp \
|
||||
ncurses \
|
||||
libffi \
|
||||
make \
|
||||
xz \
|
||||
tar \
|
||||
perl
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup install ghc --set 8.10.7 && \
|
||||
ghcup install cabal latest && \
|
||||
ghcup install stack latest
|
||||
30
docker/alpine/latest/minimal/Dockerfile
Normal file
30
docker/alpine/latest/minimal/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
binutils \
|
||||
binutils-gold \
|
||||
gmp \
|
||||
ncurses \
|
||||
libffi \
|
||||
make \
|
||||
xz \
|
||||
tar \
|
||||
perl
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup prefetch metadata
|
||||
25
docker/ubuntu/20.04/8.10.7/Dockerfile
Normal file
25
docker/ubuntu/20.04/8.10.7/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||
apt-get update -y && \
|
||||
apt-get install -y --no-install-recommends libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/cache/apt/archives && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup install ghc --set 8.10.7 && \
|
||||
ghcup install cabal latest && \
|
||||
ghcup install stack latest
|
||||
23
docker/ubuntu/20.04/minimal/Dockerfile
Normal file
23
docker/ubuntu/20.04/minimal/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||
apt-get update -y && \
|
||||
apt-get install -y --no-install-recommends libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/cache/apt/archives && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup prefetch metadata
|
||||
25
docker/ubuntu/latest/8.10.7/Dockerfile
Normal file
25
docker/ubuntu/latest/8.10.7/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||
apt-get update -y && \
|
||||
apt-get install -y --no-install-recommends libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/cache/apt/archives && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup install ghc --set 8.10.7 && \
|
||||
ghcup install cabal latest && \
|
||||
ghcup install stack latest
|
||||
23
docker/ubuntu/latest/minimal/Dockerfile
Normal file
23
docker/ubuntu/latest/minimal/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# install deps needed by GHC
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||
apt-get update -y && \
|
||||
apt-get install -y --no-install-recommends libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/cache/apt/archives && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG GHCUP_VERSION
|
||||
|
||||
# install ghcup
|
||||
RUN if [ -n "$GHCUP_VERSION" ] ; \
|
||||
then curl -sSfL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION > /usr/bin/ghcup ; \
|
||||
else curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup ; \
|
||||
fi && \
|
||||
chmod +x /usr/bin/ghcup
|
||||
|
||||
ENV GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||
ENV PATH=/usr/local/.ghcup/bin:$PATH
|
||||
|
||||
RUN ghcup prefetch metadata
|
||||
@@ -174,17 +174,7 @@ span.code {
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
#help {
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
|
||||
#collective {
|
||||
margin-top: 1em !important;
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
|
||||
#about {
|
||||
margin-top: 0.5em !important;
|
||||
font-size: 16px;
|
||||
line-height: 2em;
|
||||
}
|
||||
|
||||
@@ -137,14 +137,9 @@
|
||||
|
||||
</div>
|
||||
|
||||
<p id="help">
|
||||
<p>
|
||||
Need help? Ask on <a href="https://kiwiirc.com/nextclient/irc.libera.chat/?nick=Guest%7C?#haskell,#haskell-ghcup"><img src="irc.svg" height="18px" alt="" />IRC</a>, <a href="https://discord.gg/pKYf3zDQU7"><img src="Discord-Logo-Black.svg" height="18px" alt="" />Discord</a>, <a href="https://app.element.io/#/room/#haskell-tooling:matrix.org"><img src="Matrix_logo.svg" height="25px" alt="" style="top:5px;position:relative;" /></a> or <a href="https://gitlab.haskell.org/haskell/ghcup-hs/issues">report a bug <img src="Octicons-bug.svg" height="18px" alt="" /></a>.
|
||||
</p>
|
||||
<p id="collective">
|
||||
<a id="collective" href="https://opencollective.com/ghcup#category-CONTRIBUTE" target="_blank">
|
||||
<img src="https://opencollective.com/webpack/donate/button@2x.png?color=blue" width=200 />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p id="about">
|
||||
<img src="haskell-logo.svg" alt="" />
|
||||
|
||||
Reference in New Issue
Block a user