Skip to content

Commit

Permalink
Merge pull request #1628 from IntersectMBO/dockerfile
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
mpavlovicbb authored Jul 30, 2024
2 parents 037648f + 045eb73 commit a392cb4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions govtool/backend/Dockerfile.qovery
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG BASE_IMAGE_TAG=latest
ARG BASE_IMAGE_REPO=ghcr.io/intersectmbo/backend-base
FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.10/x/vva-be/build/vva-be/vva-be /usr/local/bin

# Expose the necessary port
EXPOSE 9876

# Default command (can be overridden by docker-compose or docker run)
CMD ["/usr/local/bin/vva-be", "-c", "/run/secrets/backend-config.json", "start-app"]

0 comments on commit a392cb4

Please sign in to comment.