diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fd112dd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.12.3 +WORKDIR /code +COPY ./requirements.txt /code/requirements.txt +RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt + +COPY ./app /code/app +WORKDIR /code/app +CMD ["fastapi", "run", "main.py", "--port", "35050"] diff --git a/app/__pycache__/main.cpython-312.pyc b/app/__pycache__/main.cpython-312.pyc new file mode 100644 index 0000000..4dc8814 Binary files /dev/null and b/app/__pycache__/main.cpython-312.pyc differ diff --git a/main.py b/app/main.py similarity index 100% rename from main.py rename to app/main.py diff --git a/security/__init__.py b/app/security/__init__.py similarity index 100% rename from security/__init__.py rename to app/security/__init__.py diff --git a/security/__pycache__/__init__.cpython-310.pyc b/app/security/__pycache__/__init__.cpython-310.pyc similarity index 100% rename from security/__pycache__/__init__.cpython-310.pyc rename to app/security/__pycache__/__init__.cpython-310.pyc diff --git a/app/security/__pycache__/__init__.cpython-312.pyc b/app/security/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..28c3200 Binary files /dev/null and b/app/security/__pycache__/__init__.cpython-312.pyc differ diff --git a/security/__pycache__/security.cpython-310.pyc b/app/security/__pycache__/security.cpython-310.pyc similarity index 100% rename from security/__pycache__/security.cpython-310.pyc rename to app/security/__pycache__/security.cpython-310.pyc diff --git a/app/security/__pycache__/security.cpython-312.pyc b/app/security/__pycache__/security.cpython-312.pyc new file mode 100644 index 0000000..db7d39e Binary files /dev/null and b/app/security/__pycache__/security.cpython-312.pyc differ diff --git a/security/security.py b/app/security/security.py similarity index 100% rename from security/security.py rename to app/security/security.py diff --git a/templates/base.html b/app/templates/base.html similarity index 100% rename from templates/base.html rename to app/templates/base.html diff --git a/templates/browser_random_number.html b/app/templates/browser_random_number.html similarity index 100% rename from templates/browser_random_number.html rename to app/templates/browser_random_number.html diff --git a/templates/browser_security_random_number.html b/app/templates/browser_security_random_number.html similarity index 100% rename from templates/browser_security_random_number.html rename to app/templates/browser_security_random_number.html diff --git a/templates/index.html b/app/templates/index.html similarity index 100% rename from templates/index.html rename to app/templates/index.html diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..38e949f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,34 @@ +annotated-types==0.7.0 +anyio==4.7.0 +certifi==2024.8.30 +click==8.1.7 +dnspython==2.7.0 +email_validator==2.2.0 +fastapi==0.115.6 +fastapi-cli==0.0.6 +h11==0.14.0 +httpcore==1.0.7 +httptools==0.6.4 +httpx==0.28.1 +idna==3.10 +Jinja2==3.1.4 +markdown-it-py==3.0.0 +MarkupSafe==3.0.2 +mdurl==0.1.2 +pydantic==2.10.3 +pydantic_core==2.27.1 +Pygments==2.18.0 +python-dotenv==1.0.1 +python-multipart==0.0.19 +PyYAML==6.0.2 +rich==13.9.4 +rich-toolkit==0.12.0 +shellingham==1.5.4 +sniffio==1.3.1 +starlette==0.41.3 +typer==0.15.1 +typing_extensions==4.12.2 +uvicorn==0.32.1 +uvloop==0.21.0 +watchfiles==1.0.1 +websockets==14.1