build(docker/backend): switch from Dockerfile-based yesod-bin+hpack install to Makefile-based install

This commit is contained in:
Sarah Vaupel 2025-03-05 18:05:37 +01:00
parent 82ea44c63f
commit ff3d33bbf4
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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"