#!/bin/bash

# This is the script that is run inside a new container to set it up at first

set -exuo pipefail
IFS=$'\n\t'

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."

# Set up python
curl https://bootstrap.pypa.io/get-pip.py | python3.9
pip3 install --no-cache-dir -r requirements.txt

# Set up node
npm ci

# Set up supervisor
cp config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Set up logrotate
cp config/logrotate /etc/logrotate.d/uwsgi

#!/bin/bash

# This is the script that is run inside a new container to set it up at first

set -exuo pipefail
IFS=$'\n\t'

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."

# Set up python
pip install --no-cache-dir -r requirements.txt

# Set up node
npm ci

# Set up supervisor
cp config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Set up logrotate
cp config/logrotate /etc/logrotate.d/uwsgi

Remove unneeded reinstallation of pip
Remove unneeded reinstallation of pip
