-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Damien Duportal <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
FROM alpine:3.13 | ||
## Using Multistage build for accelarating | ||
FROM haskell:8 AS erd | ||
# From https://github.com/BurntSushi/erd/blob/master/Dockerfile | ||
|
||
WORKDIR /opt/erd | ||
|
||
RUN apt-get update && apt-get install -y graphviz | ||
RUN cabal v2-update && cabal v2-install erd | ||
|
||
FROM alpine:3.13 AS main | ||
|
||
LABEL MAINTAINERS="Guillaume Scheibel <[email protected]>, Damien DUPORTAL <[email protected]>" | ||
|
||
|
@@ -92,22 +101,24 @@ RUN apk add --no-cache --virtual .pythonmakedepends \ | |
&& apk del -r --no-cache .pythonmakedepends | ||
|
||
# ERD | ||
RUN apk add --no-cache --virtual .haskellmakedepends \ | ||
alpine-sdk \ | ||
cabal \ | ||
ghc-dev \ | ||
ghc \ | ||
gmp-dev \ | ||
gnupg \ | ||
libffi-dev \ | ||
linux-headers \ | ||
perl-utils \ | ||
wget \ | ||
xz \ | ||
zlib-dev \ | ||
&& cabal v2-update \ | ||
&& cabal v2-install erd \ | ||
&& apk del -r --no-cache .haskellmakedepends | ||
# RUN apk add --no-cache --virtual .haskellmakedepends \ | ||
# alpine-sdk \ | ||
# cabal \ | ||
# ghc-dev \ | ||
# ghc \ | ||
# gmp-dev \ | ||
# gnupg \ | ||
# libffi-dev \ | ||
# linux-headers \ | ||
# perl-utils \ | ||
# wget \ | ||
# xz \ | ||
# zlib-dev \ | ||
# && cabal v2-update \ | ||
# && cabal v2-install erd \ | ||
# && apk del -r --no-cache .haskellmakedepends | ||
|
||
COPY --from=erd /opt/erd /root/ | ||
|
||
WORKDIR /documents | ||
VOLUME /documents | ||
|