Merged PR 17873: fix yesod-bin
build(Makefile): move yesod-bin and hpack installs to dependencies-backend for more robustness
This commit is contained in:
commit
65cb75921d
1
Makefile
1
Makefile
@ -287,6 +287,7 @@ endif
|
||||
# HELP(dependencies-backend): (re-)build backend dependencies
|
||||
--dependencies-backend: #uniworx.cabal
|
||||
chown -R `id -un`:`id -gn` "$(PROJECT_DIR)"; \
|
||||
stack install hpack; stack install yesod-bin; \
|
||||
stack build -j2 --only-dependencies
|
||||
# HELP(lint-backend): lint backend
|
||||
--lint-backend:
|
||||
|
||||
@ -30,9 +30,4 @@ ENV PROJECT_DIR=${PROJECT_DIR}
|
||||
# RUN mkdir -p "${PROJECT_DIR}"; chmod -R 777 "${PROJECT_DIR}"
|
||||
WORKDIR ${PROJECT_DIR}
|
||||
ENV HOME=${PROJECT_DIR}
|
||||
ENV STACK_ROOT="${PROJECT_DIR}/.stack"
|
||||
|
||||
RUN if [ ! -z "${IN_CI}" ]; then \
|
||||
stack install yesod-bin; \
|
||||
stack install hpack; \
|
||||
fi
|
||||
ENV STACK_ROOT="${PROJECT_DIR}/.stack"
|
||||
Loading…
Reference in New Issue
Block a user