Skip to content

Commit adaf659

Browse files
committed
fix: Dockerfile pipenv cmd
1 parent 76c2eab commit adaf659

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ ENV APP_HOME=/home/app
44
RUN addgroup -S app \
55
&& adduser -S app -G app
66

7-
COPY Pipfile.lock $APP_HOME
7+
COPY Pipfile Pipfile.lock $APP_HOME
88

99
WORKDIR $APP_HOME
1010

1111
RUN 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

1516
COPY /src .
1617

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ install:
66
run:
77
python src/app.py
88

9+
gunicorn:
10+
gunicorn --bind 0.0.0.0:5000 --chdir ./src/ app:slack_app
11+
912
test:
1013
pytest -v --cov=./src --cov-report xml
1114

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ version: '3.8'
1111

1212
services:
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:

0 commit comments

Comments
 (0)