Dockerised. Restructured to remove circular import
Moved most of app definitions out of guard function to use wsgi Updated configuration files and referencing of .env values. Local version needs dotenv or exporting of env variables. Dockerised version works fine without load_dotenv. Ready to test now!
This commit is contained in:
1 parent
452c214c15
commit
1f8e4508c3
10 files changed
+100
-67
No files matched your search
+1
-1
@@ -2,4 +2,4 @@ FROM python:3.10-slim
|
||||
WORKDIR /ref-test
|
||||
COPY . .
|
||||
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "8", "main:app" ]
|
||||
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "5", "wsgi:app" ]
|
||||
Reference in new issue
Block a user