๐Ÿ“ฆ BurntSushi / erd

๐Ÿ“„ Dockerfile ยท 25 lines
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# NB OSX users: You may encounter docker "memory error" like
#
# ```
# The build process was killed (i.e. SIGKILL). The typical reason for this is
# that there is not enough memory available (e.g. the OS killed a process using
# lots of memory).
# ```
#
# In this case you'll want to give docker more memory than the default (2Gb) in
# order to build `erd`.
#
# To give docker more memory you can:
#  - Find docker in your Menu Bar
#  - Go to Preferences > Resources > Memory
#  - and give docker more memory (eg: 4gb)

FROM haskell:8

WORKDIR /opt/erd

RUN apt-get update && apt-get install -y graphviz
RUN cabal v2-update && cabal v2-install erd

ENTRYPOINT ["erd"]