8000 Merge pull request #96 from IBM/fix-dockerfile-tools · neotycoder/python-flask-app@be2f47f · GitHub
[go: up one dir, main page]

Skip to content

Commit be2f47f

Browse files
authored
Merge pull request IBM#96 from IBM/fix-dockerfile-tools
fix: dockerfile-tools fixes for latest ubi
2 parents 7b13ce6 + 04f057c commit be2f47f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile-tools

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ RUN yum -y install --disableplugin=subscription-manager wget \
1010
&& yum --disableplugin=subscription-manager clean all
1111

1212
RUN pip3 install pipenv
13-
RUN pipenv install --deploy
14-
RUN pipenv lock -r > requirements.txt && pip3 install -r requirements.txt
13+
RUN pipenv install --dev
1514

1615
# Update python command to point to python3 install
1716
RUN alternatives --set python /usr/bin/python3
@@ -29,3 +28,5 @@ ARG bx_dev_userid=1000
2928
RUN BX_DEV_USER=$bx_dev_user
3029
RUN BX_DEV_USERID=$bx_dev_userid
3130
RUN if [ "$bx_dev_user" != root ]; then useradd -ms /bin/bash -u $bx_dev_userid $bx_dev_user; fi
31+
32+
CMD ["/bin/bash"]

run-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
# Simple shell script to run application in dev mode
3-
python manage.py livereload
3+
pipenv run python manage.py livereload

0 commit comments

Comments
 (0)
0