Created
December 19, 2017 12:10
-
-
Save unclechu/beb96d71a980b68363aba78905838f9a to your computer and use it in GitHub Desktop.
My own Docker container for Haskell Stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim:et:ts=2:sts=2:sw=2: | |
| version: '2' | |
| services: | |
| stack: | |
| build: '.' | |
| tty: true | |
| stdin_open: true | |
| volumes: | |
| - '/mnt/Storage/docker/unclechu-dev/volumes/stack-ghc-8.0.2-unclechu-home:/home/unclechu' | |
| - '/mnt/Storage/docker/unclechu-dev/haskell/:/mnt' | |
| ports: | |
| - '127.0.0.1:8040:8040' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:stretch | |
| RUN apt-get update -y \ | |
| && apt-get install -y --allow-unauthenticated \ | |
| git vim libipc-system-simple-perl libautodie-perl curl wget parallel \ | |
| postgresql-server-dev-9.6 libssl-dev libpcre2-dev libpcre3-dev \ | |
| pkg-config icu-devtools libicu-dev libxml2-dev \ | |
| libx11-dev libxtst-dev libxrandr-dev libxinerama-dev \ | |
| rsyslog locales \ | |
| && sed -i -e \ | |
| 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' \ | |
| /etc/locale.gen \ | |
| && locale-gen \ | |
| && curl -sSL https://get.haskellstack.org/ | sh | |
| ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | |
| RUN groupadd -g 1989 unclechu && useradd -m -u 1989 -g 1989 unclechu | |
| USER unclechu:unclechu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment