File size: 784 Bytes
0c9e62a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37d9063
0c9e62a
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash

if [ -z "${WORKDIR}" ];
then
    WORKDIR=$1
fi

if [ -z "${XDG_CACHE_HOME}" ];
then
    XDG_CACHE_HOME=$HOME/.cache
fi

echo "WORKDIR: ${WORKDIR} ..."
echo "XDG_CACHE_HOME: ${XDG_CACHE_HOME} ..."

cd ${WORKDIR}

if [ ! -f "${WORKDIR}/.env_source" ];
then
    echo "missing ${WORKDIR}/.env_source file, exit now..."
    exit 1
fi

source ${WORKDIR}/.env_source
echo "FOLDERS_MAP: ${FOLDERS_MAP} ..."

which python
python --version
python ${WORKDIR}/scripts/create_folders_and_variables_if_not_exists.py

cd ${WORKDIR}/static
npm install -g npm pnpm
pnpm install
pnpm build
pnpm tailwindcss -i ${WORKDIR}/static/src/input.css -o ${WORKDIR}/static/dist/output.css
cd ${WORKDIR}

chmod +x ${WORKDIR}/scripts/entrypoint.sh
bash ${WORKDIR}/scripts/entrypoint.sh

exit 0