Added Docker stuff.
This commit is contained in:
parent
8996dbcefe
commit
a17c3d7133
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM python:3.9
|
||||
|
||||
COPY app.py /usr/src/portal-webapp/
|
||||
COPY templates /usr/src/portal-webapp/templates
|
||||
WORKDIR /usr/src/portal-webapp
|
||||
|
||||
RUN pip install --no-cache-dir flask flask-dropzone gunicorn
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"]
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
version: "3"
|
||||
services:
|
||||
webapp:
|
||||
build: .
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:5000:80
|
||||
volumes:
|
||||
- /tmp/uploads/:/usr/src/portal-webapp/uploads
|
Loading…
Reference in New Issue
Block a user