From 162e5cdf98a6e90237609366b3a66cceaf06ff2f Mon Sep 17 00:00:00 2001 From: dongho Date: Tue, 10 Dec 2024 17:47:09 +0000 Subject: [PATCH] third --- Dockerfile | 8 +++++ app/__pycache__/main.cpython-312.pyc | Bin 0 -> 1067 bytes main.py => app/main.py | 0 {security => app/security}/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin .../__pycache__/__init__.cpython-312.pyc | Bin 0 -> 224 bytes .../__pycache__/security.cpython-310.pyc | Bin .../__pycache__/security.cpython-312.pyc | Bin 0 -> 1088 bytes {security => app/security}/security.py | 0 {templates => app/templates}/base.html | 0 .../templates}/browser_random_number.html | 0 .../browser_security_random_number.html | 0 {templates => app/templates}/index.html | 0 requirements.txt | 34 ++++++++++++++++++ 14 files changed, 42 insertions(+) create mode 100644 Dockerfile create mode 100644 app/__pycache__/main.cpython-312.pyc rename main.py => app/main.py (100%) rename {security => app/security}/__init__.py (100%) rename {security => app/security}/__pycache__/__init__.cpython-310.pyc (100%) create mode 100644 app/security/__pycache__/__init__.cpython-312.pyc rename {security => app/security}/__pycache__/security.cpython-310.pyc (100%) create mode 100644 app/security/__pycache__/security.cpython-312.pyc rename {security => app/security}/security.py (100%) rename {templates => app/templates}/base.html (100%) rename {templates => app/templates}/browser_random_number.html (100%) rename {templates => app/templates}/browser_security_random_number.html (100%) rename {templates => app/templates}/index.html (100%) create mode 100644 requirements.txt 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 0000000000000000000000000000000000000000..4dc8814284e74d11f6d33369a272500d432afb76 GIT binary patch literal 1067 zcmYjP%WD%s82@Hx_SH?&5Ff?2SgQsxQI8^uB7zDcRZwyXYi8PPyN@`#u_jcFR+RZyT+v;bEyQZ~&efnL%3GWLzYteAb7_*TWzfT5KkO~q#R+_n+<=FZF& zG|&*pc%AC2#>i4}WX_Jw*pWmxa;U}dj7IGzWaFGH%h9pz3xM_HRYb!diW zX>N6Vg$%3+TBJpa`JYNHVqso%&x78!Tw} zZo*<^idn76y`)v;{qU>8PX2S-)Z?s{M7*_*%EIIWs@kyh{v}kym*n3&FX0Lx)pT?p zC4HxYIlLim2#azA6fYtVt&)|Y|2n+J3#h1H6^2(Z!1cmXqa|$4Tq;`?C47sd%qZ^T5`Ms+4t#OOI~P7W zTi-iVYtB@f+m<>LX@2_)vizWHLgr8pNXF;_(T%^c8sOtS`;f4zRYhK{wk@@vlBc!J zvRy& zrq9msNvW#05kHjB#R#F#P+o)bCn$Y_gC8LG)yOV+9h?Gw4}~=-JUjaiCckEOy_|oS zIoYwh259=ziANL5Tb6crH3JzhZvFzf^)P6;zM-3!U0iOz#XC|h+d2I7=%b@4$)$E7 UwX>-+{@d0u>0%%|`2l%{f6mqlQvd(} literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..28c3200167384908827f92cd756fa666415c69ec GIT binary patch literal 224 zcmX@j%ge<81O-(Q>1sgwF^B^LOi;#W0U%>KLkdF*V-7#44*+p{qoVz$j?pHPt7haDN4-HFHS8g z%S=u!1~MQ9=%(c7rDx=Yn?&> zeBqa5iLo+#!IWpf1SV_(2UehiDhTpBY6^~65g|YTLsKwC3vOq6tPWq546}-+w4Lq2 z*dpOfBR|srmZqFUm+<B+Rbj z`z=fZ4Tkw^w%gDbZ)3-A>H(%*rA)EWB6iRTQj4 zz$2ZmTwWtyoAMT9)WV2g8$Cc`@(J6+WhSlz$aoAQ2Nw+?Ra4~=W7$L|vf;MSi~YC2 zOQ8)laix1KZdN6_YkE%AZ8>Y0lAP3 zBq6hE)UmN%ZQ87Cfi;rZre~P=27YaTuequH-285C{@uiE|K#~swb!-&l{*6gs0%}Y zRA~TEMmnH;8XwP{fCf9$#YZiomzN#U%jvUWOqs9}W*tnaZsG3H2!-uh#hAomg6}yX z(=30;%aTbZ!kNSsLyt4aEOYV!ro3N-{*yZ0pIz+dmippS3^J32E819?t?4w-eVg!K zBpiNNh)tz3w6;f{RTk3{o2`Ypl2Bf_G-5k@k@i*byH@