Skip to content

Commit

Permalink
build: change required python version and use python 3.11 in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAref committed Mar 19, 2024
1 parent a4c5a62 commit 25eeab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pull base image
FROM python:3.10
FROM python:3.11

# Set Environment variables
ENV PYTHONDONTWRITEBYTECODE 1
Expand Down Expand Up @@ -35,4 +35,4 @@ COPY . ./

# commands
# RUN alembic upgrade head
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips", "*"]
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips", "*"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Amir Aref <amiraref808@gmail.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
python = ">=3.10,<4"
fastapi = "^0.110.0"
uvicorn = {extras = ["standard"], version = "^0.23.2"}
jinja2 = "^3.1.3"
Expand Down

0 comments on commit 25eeab7

Please sign in to comment.