procfile try
This commit is contained in:
parent
09c3b3cccc
commit
96697e52aa
12
Dockerfile
12
Dockerfile
@ -1,12 +0,0 @@
|
|||||||
FROM python:3
|
|
||||||
ENV DOCKER_APP True
|
|
||||||
USER root
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
#RUN chmod u+x setup_core.sh
|
|
||||||
#RUN bash setup_core.sh
|
|
||||||
RUN pip3 install -r requirements.txt
|
|
||||||
#EXPOSE 5000/udp
|
|
||||||
#EXPOSE 5000/tcp
|
|
||||||
CMD ["gunicorn", "--bind 0.0.0.0:$PORT", "ayct_backend:create_app()", "--timeout 120"]
|
|
1
Procfile
Normal file
1
Procfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
web: gunicorn -b 0.0.0.0:$PORT ayct_backend:create_app() --timeout 120
|
@ -1,7 +0,0 @@
|
|||||||
# import os
|
|
||||||
# from . import create_app
|
|
||||||
|
|
||||||
# if __name__ == "__main__":
|
|
||||||
# app = create_app()
|
|
||||||
# port = int(os.environ.get('PORT', 5000))
|
|
||||||
# app.run(host = '0.0.0.0', port = port)
|
|
@ -1,3 +0,0 @@
|
|||||||
build:
|
|
||||||
docker:
|
|
||||||
web: Dockerfile
|
|
@ -1,6 +0,0 @@
|
|||||||
git clone https://git.wmi.amu.edu.pl/s415366/pbr-ayct-core
|
|
||||||
cd pbr-ayct-core
|
|
||||||
pip3 install setuptools
|
|
||||||
python3 -m pip install --upgrade build
|
|
||||||
python3 -m build
|
|
||||||
pip3 install dist/pbrAyctCore-0.0.1.tar.gz
|
|
Loading…
Reference in New Issue
Block a user