-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladimir Stepic
committed
Jun 19, 2024
1 parent
5a732fc
commit 53d3f07
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
ARG BASE_IMAGE_TAG=latest | ||
ARG BASE_IMAGE_REPO=733019650473.dkr.ecr.eu-west-1.amazonaws.com/backend-base | ||
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-0.1.0.0/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"] |