Removed /v1/ prefix from Haskell source code. Optimised backend image. Added newlines to frontend.

This commit is contained in:
2022-07-12 02:24:45 +01:00
parent e3c27c6609
commit ba75a239e6
5 changed files with 62 additions and 24 deletions
+7 -2
View File
@@ -1,4 +1,4 @@
FROM haskell:8
FROM haskell:8 as build
WORKDIR /opt/backend
RUN apt-get update
RUN yes | apt-get install postgresql libpq-dev
@@ -7,4 +7,9 @@ COPY ./backend.cabal /opt/backend
RUN cabal build --only-dependencies -j4
COPY . /opt/backend
RUN cabal install
CMD ["backend"]
FROM debian:buster
RUN apt-get update
RUN yes | apt-get install postgresql libpq-dev
COPY --from=build /root/.cabal/bin/backend ./
CMD ["./backend"]