aboutsummaryrefslogtreecommitdiffstats
path: root/docker/entrypoint.sh
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-06-02 19:10:50 +0100
committerLibravatar GitHub <noreply@github.com>2022-06-02 19:10:50 +0100
commitbf64ce55d3a83a14d4cc47e8fbf889fd978a4f82 (patch)
tree45103e078ca672c26bdd56e77dae238119de8a8e /docker/entrypoint.sh
parentFix gh actions (#38) (diff)
downloadferdium-server-bf64ce55d3a83a14d4cc47e8fbf889fd978a4f82.tar.gz
ferdium-server-bf64ce55d3a83a14d4cc47e8fbf889fd978a4f82.tar.zst
ferdium-server-bf64ce55d3a83a14d4cc47e8fbf889fd978a4f82.zip
Add dynamic version of pnpm and npm (#37)
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-xdocker/entrypoint.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 7b66a32..4178d97 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -17,8 +17,6 @@ Brought to you by ferdium.org
17EOL 17EOL
18 18
19# Update recipes from official git repository 19# Update recipes from official git repository
20npm i -gf pnpm@7.1.2
21
22if [ ! -d "/app/recipes/.git" ]; # When we mount an existing volume (ferdium-recipes-vol:/app/recipes) if this is only /app/recipes it is always true 20if [ ! -d "/app/recipes/.git" ]; # When we mount an existing volume (ferdium-recipes-vol:/app/recipes) if this is only /app/recipes it is always true
23then 21then
24 echo '**** Generating recipes for first run ****' 22 echo '**** Generating recipes for first run ****'
@@ -35,6 +33,8 @@ fi
35 33
36cd recipes 34cd recipes
37git config --global --add safe.directory /app/recipes 35git config --global --add safe.directory /app/recipes
36EXPECTED_PNPM_VERSION=$(node -p 'require("./package.json").engines.pnpm')
37npm i -gf pnpm@$EXPECTED_PNPM_VERSION
38pnpm i 38pnpm i
39pnpm package 39pnpm package
40cd .. 40cd ..