Compare commits
No commits in common. "gunicorn" and "master" have entirely different histories.
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
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 ["python3","-m", "ayct_backend.app"]
|
@ -26,6 +26,4 @@ def create_app():
|
||||
def hello():
|
||||
return "Hello world!"
|
||||
|
||||
return app
|
||||
|
||||
app = create_app()
|
||||
return app
|
7
ayct_backend/app.py
Normal file
7
ayct_backend/app.py
Normal file
@ -0,0 +1,7 @@
|
||||
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)
|
3
heroku.yml
Normal file
3
heroku.yml
Normal file
@ -0,0 +1,3 @@
|
||||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
@ -5,5 +5,3 @@ requests_oauthlib==1.3.0
|
||||
psycopg2==2.9.3
|
||||
pytest==6.2.5
|
||||
google-api-python-client==2.36.0
|
||||
nltk==3.7
|
||||
gunicorn==20.1.0
|
||||
|
6
setup_core.sh
Normal file
6
setup_core.sh
Normal file
@ -0,0 +1,6 @@
|
||||
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