Samad14 commited on
Commit
7c97dd0
·
1 Parent(s): ebe3b7a

fix: revert backend build to pip install (build.sh/apt-get broke the Render build, taking the backend down -> 404 on all routes incl. /api/audit)

Browse files
Files changed (2) hide show
  1. bioai-platform/backend/build.sh +0 -22
  2. render.yaml +1 -1
bioai-platform/backend/build.sh DELETED
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- echo "==> Installing system dependencies (openbabel, wget, ca-certificates)"
5
- apt-get update && apt-get install -y --no-install-recommends openbabel wget ca-certificates
6
- apt-get clean && rm -rf /var/lib/apt/lists/*
7
-
8
- echo "==> Installing AutoDock Vina"
9
- wget -q "https://github.com/ccsb-scripps/AutoDock-Vina/releases/download/v1.2.7/vina_1.2.7_linux_x86_64" -O /usr/local/bin/vina
10
- chmod +x /usr/local/bin/vina
11
-
12
- echo "==> Installing PhyML"
13
- wget -qO /tmp/phyml.tar.bz2 "https://anaconda.org/bioconda/phyml/3.3.20220408/download/linux-64/phyml-3.3.20220408-h9bc3f66_3.tar.bz2"
14
- tar xjf /tmp/phyml.tar.bz2 -C /tmp
15
- cp /tmp/bin/phyml /usr/local/bin/phyml
16
- chmod +x /usr/local/bin/phyml
17
- rm -rf /tmp/phyml.tar.bz2 /tmp/bin
18
-
19
- echo "==> Installing Python dependencies"
20
- pip install -r requirements.txt
21
-
22
- echo "==> Build complete"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
render.yaml CHANGED
@@ -4,7 +4,7 @@ services:
4
  runtime: python
5
  region: ohio
6
  rootDir: bioai-platform/backend
7
- buildCommand: bash build.sh
8
  startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
9
  healthCheckPath: /health
10
  envVars:
 
4
  runtime: python
5
  region: ohio
6
  rootDir: bioai-platform/backend
7
+ buildCommand: pip install -r requirements.txt
8
  startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
9
  healthCheckPath: /health
10
  envVars: