-
Notifications
You must be signed in to change notification settings - Fork 151
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
21 additions
and
18 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,22 @@ | ||
FROM alpine:3.13 | ||
## Multi-stage build to allow parallel building | ||
FROM alpine:3.13 AS 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 | ||
|
||
FROM alpine:3.13 AS main | ||
|
||
LABEL MAINTAINERS="Guillaume Scheibel <[email protected]>, Damien DUPORTAL <[email protected]>" | ||
|
||
|
@@ -91,23 +109,8 @@ RUN apk add --no-cache --virtual .pythonmakedepends \ | |
seqdiag \ | ||
&& 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 | ||
COPY --from=erd /root/.cabal /root/.cabal | ||
COPY --from=erd /opt /opt | ||
|
||
WORKDIR /documents | ||
VOLUME /documents | ||
|