Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
ghcup-hs
Commits
3a58458c
Verified
Commit
3a58458c
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Add docker support
parent
bbd11bfa
Branches
docker
No related tags found
1 merge request
!173
Draft: Add docker support
Pipeline
#40631
passed
3 years ago
Stage: hlint
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/alpine/8.10.7/Dockerfile
+32
-0
32 additions, 0 deletions
docker/alpine/8.10.7/Dockerfile
docker/alpine/minimal/Dockerfile
+30
-0
30 additions, 0 deletions
docker/alpine/minimal/Dockerfile
with
62 additions
and
0 deletions
docker/alpine/8.10.7/Dockerfile
0 → 100644
+
32
−
0
View file @
3a58458c
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
This diff is collapsed.
Click to expand it.
docker/alpine/minimal/Dockerfile
0 → 100644
+
30
−
0
View file @
3a58458c
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment