This repository was archived by the owner on Feb 15, 2023. It is now read-only.
File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ RUN pip3 install --upgrade pip==21.0.1 \
12
12
&& pip3 install --upgrade pipenv==2020.11.15 \
13
13
&& pipenv install --deploy
14
14
15
+ RUN pipenv lock -r > requirements.txt && pip3 install -r requirements.txt
16
+
15
17
USER 1001
16
18
17
19
COPY . /opt/app-root/src
@@ -20,4 +22,4 @@ ENV PORT 3000
20
22
21
23
EXPOSE 3000
22
24
23
- CMD [ " python3" , " manage.py" , " start" ]
25
+ CMD exec python3 manage.py start
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ RUN yum -y install --disableplugin=subscription-manager wget \
10
10
&& yum --disableplugin=subscription-manager clean all
11
11
12
12
RUN pip3 install pipenv
13
- RUN pipenv install
13
+ RUN pipenv install --deploy
14
+ RUN pipenv lock -r > requirements.txt && pip3 install -r requirements.txt
14
15
15
16
# Update python command to point to python3 install
16
17
RUN alternatives --set python /usr/bin/python3
Original file line number Diff line number Diff line change 3
3
import sys
4
4
5
5
if __name__ == "__main__" :
6
- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "pythondjangoapp.settings.development " )
6
+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "pythondjangoapp.settings.production " )
7
7
try :
8
8
from django .core .management import execute_from_command_line
9
9
except ImportError :
You can’t perform that action at this time.
0 commit comments