parent
8996dbcefe
commit
a17c3d7133
@ -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"]
|
@ -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