Skip to content

Commit

Permalink
WiP: parallel builds
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal committed Jan 22, 2021
1 parent 68d9943 commit 3ac5c1f
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM alpine:3.12
## 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.12 AS main

LABEL MAINTAINERS="Guillaume Scheibel <[email protected]>, Damien DUPORTAL <[email protected]>"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3ac5c1f

Please sign in to comment.