feat: devcontainer

This commit is contained in:
Alex
2025-02-05 11:54:06 +00:00
parent f97b56a87b
commit d754a43fba
4 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status
cp -n .env-template .env || true
mkdir -p model
if [ ! -d model/all-mpnet-base-v2 ]; then
wget -q https://d3dg1063dc54p9.cloudfront.net/models/embeddings/mpnet-base-v2.zip -O model/mpnet-base-v2.zip
unzip -q model/mpnet-base-v2.zip -d model
rm model/mpnet-base-v2.zip
fi
pip install -r application/requirements.txt
cd frontend
npm install --include=dev