Skip to content

Commit 3fae844

Browse files
author
Your Name
committed
fix-poetry move to auth_server and info_server
1 parent 264f8c6 commit 3fae844

File tree

7 files changed

+36
-41
lines changed

7 files changed

+36
-41
lines changed

Dockerfile.auth

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ RUN mkdir auth_server
55
ENV PYTHONDONTWRITEBYTECODE 1
66
ENV PYTHONUNBUFFERED 1
77

8-
COPY poetry/poetry_for_auth/pyproject.toml poetry/poetry_for_auth/poetry.lock ./
8+
COPY ./auth_server ./auth_server
9+
10+
WORKDIR /auth_server
911

1012
RUN pip install poetry \
1113
&& poetry config virtualenvs.create false \
1214
&& poetry install --no-root --no-dev
1315

14-
COPY ./auth_server ./auth_server
15-
RUN pip install uvicorn
16-
17-
WORKDIR /auth_server
18-
1916
# CMD ["python", "./tests/start_tests.py"]
2017
ENTRYPOINT ["uvicorn", "--reload", "app:app", "--host", "0.0.0.0", "--port", "8000"]

Dockerfile.info

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ RUN mkdir info_server
55
ENV PYTHONDONTWRITEBYTECODE 1
66
ENV PYTHONUNBUFFERED 1
77

8-
COPY poetry/poetry_for_info/pyproject.toml poetry/poetry_for_info/poetry.lock ./
8+
COPY ./info_server ./info_server
9+
10+
WORKDIR /info_server
911

1012
RUN pip install poetry \
1113
&& poetry config virtualenvs.create false \
1214
&& poetry install --no-root --no-dev
1315

14-
COPY ./info_server ./info_server
15-
RUN pip install uvicorn
16-
17-
WORKDIR /info_server
18-
1916
# CMD ["python", "./tests/start_tests.py"]
2017
ENTRYPOINT ["uvicorn", "--reload", "app:app", "--host", "0.0.0.0", "--port", "8000"]
File renamed without changes.

auth_server/pyproject.toml

+30
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
[tool.poetry]
2+
name = "poetry-for-auth"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Your Name <[email protected]>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.10.13"
10+
fastapi = "^0.109.2"
11+
pydantic = "^2.6.1"
12+
pydantic-settings = "^2.2.1"
13+
pyjwt = {extras = ["crypto"], version = "^2.8.0"}
14+
bcrypt = "^4.1.2"
15+
email-validator = "^2.1.0.post1"
16+
sqlalchemy = {extras = ["asyncio"], version = "^2.0.27"}
17+
asyncpg = "^0.29.0"
18+
fastapi-pagination = "^0.12.16"
19+
exceptiongroup = "^1.2.0"
20+
uvicorn = {extras = ["standard"], version = "^0.27.1"}
21+
python-multipart = "^0.0.9"
22+
pytest = {extras = ["asyncio"], version = "^8.0.1"}
23+
httpx = "^0.26.0"
24+
pytest-asyncio = "^0.23.5"
25+
26+
27+
[build-system]
28+
requires = ["poetry-core"]
29+
build-backend = "poetry.core.masonry.api"
30+
131
[tool.pytest.ini_options]
232
pythonpath = [
333
".", ".",
File renamed without changes.
File renamed without changes.

poetry/poetry_for_auth/pyproject.toml

-29
This file was deleted.

0 commit comments

Comments
 (0)