10 lines
246 B
Docker
10 lines
246 B
Docker
FROM haskell:8
|
|
WORKDIR /opt/backend
|
|
RUN apt-get update
|
|
RUN yes | apt-get install postgresql libpq-dev
|
|
RUN cabal update
|
|
COPY ./backend.cabal /opt/backend
|
|
RUN cabal build --only-dependencies -j4
|
|
COPY . /opt/backend
|
|
RUN cabal install
|
|
CMD ["backend"] |