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 20, 2024
1 parent c45b093 commit 3186467
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions linguaphoto/apprunner.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
version: 1.0
runtime: python3 # Specify the Python runtime version
runtime: python311 # Specify the Python runtime version

# Specify the build phase commands
build:
commands:
build:
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt # Install dependencies within the virtual environment
- python3 -m pip install --upgrade pip
- python3 -m venv venv
- source venv/Scripts/activate
- pip3 install -r requirements.txt # Install dependencies within the virtual environment

# Specify the start phase command
run:
command: python main.py # Use the virtual environment's Python to run the application
command: python3 main.py # Adjust to the path to your application entry point

0 comments on commit 3186467

Please sign in to comment.