build(backend/Dockerfile): fix backend Dockerfile ENTRYPOINT

This commit is contained in:
Sarah Vaupel 2025-03-28 17:30:45 +01:00
parent 599d2c1c7a
commit e38e22a064
2 changed files with 2 additions and 6 deletions

View File

@ -82,7 +82,7 @@ start-%:
.PHONY: shell-% .PHONY: shell-%
# HELP(shell-$SERVICE): launch a (bash) shell inside a given service # HELP(shell-$SERVICE): launch a (bash) shell inside a given service
shell-%: shell-%:
docker compose run --build --no-deps --entrypoint="$(ENTRYPOINT)" $* docker compose run --build --no-deps $* $(ENTRYPOINT)
.PHONY: ghci .PHONY: ghci
# HELP: launch ghci instance. Use in combination with SRC to specify the modules to be loaded by ghci: make ghci SRC=src/SomeModule.hs # HELP: launch ghci instance. Use in combination with SRC to specify the modules to be loaded by ghci: make ghci SRC=src/SomeModule.hs
ghci: ENTRYPOINT=stack ghci $(SRC) ghci: ENTRYPOINT=stack ghci $(SRC)

View File

@ -34,7 +34,3 @@ ENV PROJECT_DIR=${PROJECT_DIR}
WORKDIR ${PROJECT_DIR} WORKDIR ${PROJECT_DIR}
ENV HOME=${PROJECT_DIR} ENV HOME=${PROJECT_DIR}
ENV STACK_ROOT="${PROJECT_DIR}/.stack" ENV STACK_ROOT="${PROJECT_DIR}/.stack"
ENV STACK_SRC=""
ENV STACK_ENTRY="ghci ${STACK_SRC}"
ENTRYPOINT stack ${STACK_ENTRY}