docker fix

This commit is contained in:
Łukasz Jędyk 2022-01-24 20:06:33 +01:00
parent 7907028283
commit 38094e7b26
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ USER root
WORKDIR /app
COPY . .
RUN chmod u+x setup_core.sh
RUN bash setup_core.sh
#RUN chmod u+x setup_core.sh
#RUN bash setup_core.sh
RUN pip3 install -r requirements.txt
EXPOSE 5000/udp
EXPOSE 5000/tcp

View File

@ -5,7 +5,7 @@ from twitter import twitter
from twitter.models import twitter_db
from campaign import campaign
from campaign.models import campaign_db
import pbrAyctCore.core as core
#import pbrAyctCore.core as core
def create_app():
app = Flask('ayct-backend')
@ -23,6 +23,6 @@ def create_app():
@app.route('/hello')
def hello():
return core.getTestString()
return "Hello world!"
return app