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 8f9978d commit 6127bd3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions linguaphoto/apprunner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ runtime: python3 # Specify the Python runtime version
build:
commands:
build:
- python -m venv venv
- source venv/Scripts/activate
- sudo apt-get update # Update package list
- sudo apt-get install -y python3-venv # Install python3-venv
- python3 -m venv venv # Create virtual environment
- source venv/bin/activate # Activate virtual environment
- pip install -r requirements.txt # Install dependencies within the virtual environment

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

0 comments on commit 6127bd3

Please sign in to comment.