mirror of
https://github.com/aronwk-aaron/MSState-Library-ETD.git
synced 2025-12-30 17:29:54 -06:00
Docker, wooo!
Can be built and run in docker
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM python:3.7-slim
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install gunicorn
|
||||
COPY wsgi.py wsgi.py
|
||||
COPY ./app /app
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["gunicorn", "-b", ":8000", "wsgi:app"]
|
||||
5
run.py
5
run.py
@@ -1,5 +0,0 @@
|
||||
from app import create_app
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = create_app()
|
||||
app.run()
|
||||
Reference in New Issue
Block a user