chore(Dockerfile): pre-build dependencies in fradrive-env

This commit is contained in:
Sarah Vaupel 2024-07-29 14:33:46 +02:00
parent 973175d5b9
commit 4ead63006a
2 changed files with 5 additions and 1 deletions

View File

@ -43,5 +43,8 @@ RUN useradd -ms /bin/bash fradrive-env
USER fradrive-env
ADD . /fradrive-src
WORKDIR /fradrive-src
ARG FONTAWESOME_NPM_AUTH_TOKEN
# pre-build frontend- and backend-dependencies
RUN make node_modules
RUN make backend-dependencies

View File

@ -4,6 +4,7 @@ USER root
# Install uniworx binary
WORKDIR /fradrive-src
# RUN make clean # TODO: to discuss whether to invalidate all caches beforehand
RUN make bin/uniworx
# Runtime dependencies