add docker to the mix
This commit is contained in:
parent
16642918fa
commit
fd57f5813d
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
__pycache__/
|
||||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
RUN pip3 install poetry
|
||||||
|
RUN poetry config virtualenvs.create false
|
||||||
|
|
||||||
|
RUN mkdir /opt/app
|
||||||
|
WORKDIR /opt/app
|
||||||
|
|
||||||
|
COPY pyproject.toml poetry.lock ./
|
||||||
|
RUN poetry install --no-dev
|
||||||
|
|
||||||
|
COPY ./ ./
|
||||||
|
|
||||||
|
CMD ["gunicorn", "--bind", "0.0.0.0"]
|
||||||
6
docker-compose.yaml
Normal file
6
docker-compose.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
init: true
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:5123:8000"
|
||||||
1
gunicorn.conf.py
Normal file
1
gunicorn.conf.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
wsgi_app = 'app:app'
|
||||||
17
poetry.lock
generated
17
poetry.lock
generated
@ -44,6 +44,20 @@ Werkzeug = ">=2.3.3"
|
|||||||
async = ["asgiref (>=3.2)"]
|
async = ["asgiref (>=3.2)"]
|
||||||
dotenv = ["python-dotenv"]
|
dotenv = ["python-dotenv"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "gunicorn"
|
||||||
|
version = "20.1.0"
|
||||||
|
description = "WSGI HTTP Server for UNIX"
|
||||||
|
category = "main"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.5"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
eventlet = ["eventlet (>=0.24.1)"]
|
||||||
|
gevent = ["gevent (>=1.4.0)"]
|
||||||
|
setproctitle = ["setproctitle"]
|
||||||
|
tornado = ["tornado (>=0.2)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "itsdangerous"
|
name = "itsdangerous"
|
||||||
version = "2.1.2"
|
version = "2.1.2"
|
||||||
@ -164,13 +178,14 @@ watchdog = ["watchdog (>=2.3)"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "1.1"
|
lock-version = "1.1"
|
||||||
python-versions = "^3.10"
|
python-versions = "^3.10"
|
||||||
content-hash = "eb105df2967c9247e5d32c49b9996442ba31976fb4da0c99bffa003aa8242182"
|
content-hash = "1a5905d329305a82f0568b7fdea227b713ee393a14f79e5247af77551ffda804"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
blinker = []
|
blinker = []
|
||||||
click = []
|
click = []
|
||||||
colorama = []
|
colorama = []
|
||||||
flask = []
|
flask = []
|
||||||
|
gunicorn = []
|
||||||
itsdangerous = []
|
itsdangerous = []
|
||||||
jinja2 = []
|
jinja2 = []
|
||||||
lml = []
|
lml = []
|
||||||
|
|||||||
@ -10,6 +10,7 @@ sox = "^1.4.1"
|
|||||||
Jinja2 = "^3.1.2"
|
Jinja2 = "^3.1.2"
|
||||||
pyexcel-odsr = "^0.6.0"
|
pyexcel-odsr = "^0.6.0"
|
||||||
Flask = "^2.3.2"
|
Flask = "^2.3.2"
|
||||||
|
gunicorn = "^20.1.0"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user