build(docker/backend): switch from Dockerfile-based yesod-bin+hpack install to Makefile-based install
This commit is contained in:
parent
82ea44c63f
commit
ff3d33bbf4
4
Makefile
4
Makefile
@ -297,6 +297,10 @@ endif
|
||||
# uniworx.cabal:
|
||||
# stack exec -- hpack --force
|
||||
|
||||
.stack:
|
||||
stack install hpack
|
||||
stack install yesod-bin
|
||||
|
||||
# HELP(compile-frontend): compile frontend assets
|
||||
--compile-frontend: node_modules assets esbuild.config.mjs frontend/src/env.sass
|
||||
npm run build
|
||||
|
||||
@ -25,12 +25,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt-get -y update && apt-get -y install texlive-latex-recommended texlive-luatex texlive-plain-generic texlive-lang-german texlive-lang-english
|
||||
|
||||
ENV STACK_ROOT="/.stack"
|
||||
RUN stack install yesod-bin
|
||||
RUN stack install hpack
|
||||
|
||||
ARG PROJECT_DIR=/fradrive
|
||||
ENV PROJECT_DIR=${PROJECT_DIR}
|
||||
# RUN mkdir -p "${PROJECT_DIR}"; chmod -R 777 "${PROJECT_DIR}"
|
||||
WORKDIR ${PROJECT_DIR}
|
||||
ENV HOME=${PROJECT_DIR}
|
||||
ENV HOME=${PROJECT_DIR}
|
||||
ENV STACK_ROOT="${PROJECT_DIR}/.stack"
|
||||
Loading…
Reference in New Issue
Block a user