add Dockerfile, gunicorn and requirements
This commit is contained in:
parent
9b410e637e
commit
a6f90d6aff
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM python:3.12-alpine
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . /app
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["gunicorn", "--config", "gunicorn_config.py", "app:app"]
|
3
app.py
3
app.py
@ -73,4 +73,5 @@ def search_for_doctors_with_params():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
serve(app, host="0.0.0.0", port=8080)
|
||||
|
||||
|
4
gunicorn_config.py
Normal file
4
gunicorn_config.py
Normal file
@ -0,0 +1,4 @@
|
||||
bind = "0.0.0.0:5000"
|
||||
workers = 4
|
||||
threads = 4
|
||||
timeout = 120
|
21
requirements.txt
Normal file
21
requirements.txt
Normal file
@ -0,0 +1,21 @@
|
||||
annotated-types==0.7.0
|
||||
blinker==1.8.2
|
||||
certifi==2024.7.4
|
||||
charset-normalizer==3.3.2
|
||||
click==8.1.7
|
||||
dnspython==2.6.1
|
||||
email_validator==2.2.0
|
||||
Flask==3.0.3
|
||||
gunicorn==23.0.0
|
||||
idna==3.7
|
||||
itsdangerous==2.2.0
|
||||
Jinja2==3.1.4
|
||||
MarkupSafe==2.1.5
|
||||
packaging==24.1
|
||||
pydantic==2.8.2
|
||||
pydantic_core==2.20.1
|
||||
requests==2.32.3
|
||||
typing_extensions==4.12.2
|
||||
urllib3==2.2.2
|
||||
Werkzeug==3.0.3
|
||||
WTForms==3.1.2
|
Loading…
Reference in New Issue
Block a user