From 83a8d2f9ca0871f98d8ac998b3015d74c68fc29c Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Sun, 26 May 2024 11:36:27 +0200 Subject: [PATCH] Served by uWSGI --- Dockerfile | 18 +++++++++--------- __pycache__/app.cpython-310.pyc | Bin 0 -> 2029 bytes app.ini | 5 +++++ requirements.txt | 13 +++++++++++++ wsgi.py | 3 +++ 5 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 __pycache__/app.cpython-310.pyc create mode 100644 app.ini create mode 100644 wsgi.py diff --git a/Dockerfile b/Dockerfile index 94a93c2..c044bd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,21 @@ # start by pulling the python image -FROM python:3.8-alpine +FROM python:3 + +# install uwsgi +RUN apt install -y gcc && pip3 install uwsgi # copy the requirements file into the image -COPY ./requirements.txt /app/requirements.txt +COPY ./requirements.txt /tmp/requirements.txt +RUN pip3 install --no-cache-dir -r /tmp/requirements.txt # switch working directory WORKDIR /app -# install the dependencies and packages in the requirements file -RUN pip install -r requirements.txt - # copy every content from the local file to the image COPY ./app.py /app COPY ./templates/index.html /app/templates/index.html COPY ./static/favicon.ico /app/static/favicon.ico +COPY ./app.ini /app +COPY ./wsgi.py /app -# configure the container to run in an executed manner -ENTRYPOINT [ "python" ] - -CMD ["app.py" ] \ No newline at end of file +CMD ["uwsgi","--ini","app.ini"] \ No newline at end of file diff --git a/__pycache__/app.cpython-310.pyc b/__pycache__/app.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3f88c0f0b7eaa0ed7f5f11945c31aa35103c167f GIT binary patch literal 2029 zcmaJ>TW=dh7~R>cz3W?SC(fmUAV9*ZaC!|Ysvv3!7f}^xf}pEN*2Xj5tmEBvXU8eA z+NbcEC;9?U=_9{^U%(4LV8k0w`3I;Elr!tZ3KiKSkmbaDAx9hHu2CZ^o8y#kOz9j_(lF#~2pkqF*E$Gnjis ze2<#U8$jLIDdyZK!dWF_$gEo(K%t^L#YtNrzPul&qC9O|~ zLAEceoF$a;u3+(K7zidE&K`|fCZvyzy}Da(qZ{J^t>K8>7+9^-bU1+PwQafW zSm!l?CCn!{tfxen!a5>>{e(~(W7l!y4y-_ppa^tf9;^f_!z!?9(h$xQ@_`mOq9z>b z9O;NKYTx8vh&kaL5o)xwpop9WvIq+-*&Gz&fx5 zYyiu^Ca?mW2UdX#KnGX_7J)5b0k{aXfe@}}&?QknF=&h0&-FZ7oJH0wnwv%SS=5+C z%~>=*ixyNwmyg{ot-W%ed$?$6K4x4raD~t|U!g2rFsggu^Juj_|Q&n}w z8XI9hFYZS8%g?I3wGpBjW#PQ$_m6!y8^L? z@8v@w_b3Ua-P;S2kWJhO|IQDcJrNJvMd^kt3u2)*z?U&IuPN75ZeF7~WfaYE5kaBiuA23%X` zWq@B)E6tPss`0l`^P+S2!<}z4#_(t-QW`+-(X?Kyux)PV_2kb!=JH)CK?0_EZTP_GBnXWf@}CIS)lCf%*22M#9IbO-Gs?Cr1 zf_q1ean5G@9wbv)YB)FhC4XNv7P{Ryh>~u1va%%tE+D;C#;Ljn=r0NORu8Uru53@7 zE1mpn>(ZiZcN|J{FU>^z5`PbAd}o-3p^_~mg(sh@zbF?%uDz)))YN`8Z}0A&zw6vN zTSXGYtlQ<66}7SZeiZVV4*8oZ->P!2)w-|5C|G`N)BTxI(odzq$H|3bQ9|VT*%WTa mDIE{lN9sq