Containerise for deployment
This commit is contained in:
@ -1,2 +1,4 @@
|
||||
env/
|
||||
__pycache__/
|
||||
venv/
|
||||
__pycache__/
|
||||
data/database.db
|
@ -1,8 +1,8 @@
|
||||
FROM python:3-10:alpine
|
||||
FROM python:3.10-slim
|
||||
ARG DATA=./data/
|
||||
ENV DATA=$DATA
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||
RUN chmod +x install.py reset.py && ./install.py
|
||||
RUN chmod +x install.py && ./install.py
|
||||
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "5", "wsgi:app" ]
|
18
server/requirements.txt
Normal file
18
server/requirements.txt
Normal file
@ -0,0 +1,18 @@
|
||||
click==8.1.3
|
||||
Flask==2.2.2
|
||||
Flask-Cors==3.0.10
|
||||
Flask-SQLAlchemy==2.5.1
|
||||
greenlet==1.1.3
|
||||
gunicorn==20.1.0
|
||||
itsdangerous==2.1.2
|
||||
Jinja2==3.1.2
|
||||
MarkupSafe==2.1.1
|
||||
numpy==1.23.2
|
||||
pip==22.2.2
|
||||
python-dotenv==0.20.0
|
||||
setuptools==65.3.0
|
||||
six==1.16.0
|
||||
SQLAlchemy==1.4.40
|
||||
sqlalchemy-json==0.5.0
|
||||
Werkzeug==2.2.2
|
||||
wheel==0.37.1
|
Reference in New Issue
Block a user