Skip to content

Commit

Permalink
fix: update python version to 3.11 in gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
tawandamoyo committed Oct 23, 2024
1 parent 60461e8 commit d4f5737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gcp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.10
FROM python:3.11
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH
RUN apt-get update && apt-get install -y build-essential checkinstall
RUN python3.10 -m pip install --upgrade pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip
RUN python3.11 -m pip install --upgrade pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip
RUN apt-get update && apt-get install -y redis-server
RUN pip install git+https://github.com/policyengine/policyengine-api
2 changes: 1 addition & 1 deletion gcp/policyengine_api/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ gunicorn -b :$PORT policyengine_api.api --timeout 300 --workers 5 &
# Start the redis server
redis-server &
# Start the worker
ANTHROPIC_API_TOKEN=$ANTHROPIC_API_TOKEN python3.10 policyengine_api/worker.py
ANTHROPIC_API_TOKEN=$ANTHROPIC_API_TOKEN python3.11 policyengine_api/worker.py

0 comments on commit d4f5737

Please sign in to comment.