-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 923 Bytes
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 923 Bytes
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
# docker build -t haskell-postgres .
# docker run -it --rm --privileged -p 1000:8080 --name haskel-dev -v ${PWD}:/workdir -w /workdir haskell-postgres bash
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
libpq-dev \
postgresql-server-dev-all \
pkg-config \
postgresql-client \
build-essential \
zlib1g-dev \
libssl-dev \
curl \
wget \
ca-certificates \
gnupg \
software-properties-common \
libtinfo-dev \
libgmp-dev \
libnuma-dev \
&& rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
ENV PATH="/root/.ghcup/bin:${PATH}"
RUN ghcup install ghc 9.8.4 && \
ghcup set ghc 9.8.4 && \
ghcup install cabal latest && \
ghcup install stack latest
RUN cabal update
WORKDIR /workdir