File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,14 @@ ENV APP_HOME=/home/app
44RUN addgroup -S app \
55 && adduser -S app -G app
66
7- COPY Pipfile.lock $APP_HOME
7+ COPY Pipfile Pipfile .lock $APP_HOME
88
99WORKDIR $APP_HOME
1010
1111RUN pip install --upgrade pip && \
1212 pip install pipenv && \
13- pipenv install --deploy --ignore-pipfile
13+ pipenv install --deploy --system --ignore-pipfile && \
14+ pip uninstall -y pipenv
1415
1516COPY /src .
1617
Original file line number Diff line number Diff line change 66run :
77 python src/app.py
88
9+ gunicorn :
10+ gunicorn --bind 0.0.0.0:5000 --chdir ./src/ app:slack_app
11+
912test :
1013 pytest -v --cov=./src --cov-report xml
1114
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ version: '3.8'
1111
1212services :
1313 switcherslackapp :
14- image : trackerforce/switcher-slack-app:latest
14+ image : trackerforce/switcher-slack-app:dev
1515 container_name : switcherslackapp
16- command : gunicorn --bind 0.0.0.0:5000 --chdir /home/app app:flask_app
16+ command : gunicorn --bind 0.0.0.0:5000 --chdir /home/app app:slack_app
1717 # TLS Enabled
1818 # command: [
1919 # "gunicorn",
2020 # "--certfile=/etc/certs/[replace].crt", "--keyfile=/etc/certs/[replace].key",
2121 # "--bind", "0.0.0.0:5000",
22- # "--chdir", "/home/app", "app:flask_app "]
22+ # "--chdir", "/home/app", "app:slack_app "]
2323 ports :
2424 - 5000:5000
2525 environment :
You can’t perform that action at this time.
0 commit comments