Skip to content

Commit

Permalink
Update apprunner.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Ofii authored Aug 19, 2024
1 parent 26bc257 commit fb52b38
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions apprunner.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
version: 1.0

runtime: python3.11 # Specify the runtime as Python 3.11

runtime: python311
build:
commands:
build:
- echo "Build command..."
run:
pre-run:
- echo "Installing depecincies..."
- cd linguaphoto
- pip install --upgrade pip # Ensure pip is up to date
- pip install -r requirements.txt

run:
command: |
cd linguaphoto && uvicorn main:app --host 0.0.0.0 --port 8080 # Run backend server on port 8080
command:
cd linguaphoto && uvicorn main:app --host 0.0.0.0 --port 8080
network: 8080

0 comments on commit fb52b38

Please sign in to comment.