Removed /v1/ prefix from Haskell source code. Optimised backend image. Added newlines to frontend.
This commit is contained in:
+7
-2
@@ -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"]
|
||||
Reference in New Issue
Block a user