File tree Expand file tree Collapse file tree 6 files changed +6
-5
lines changed
Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ RUN apt-get update && \
66 rm -rf /var/lib/apt/lists/*
77ADD requirements.txt requirements.txt
88RUN pip install --upgrade pip && \
9- pip install --no-cache-dir -r requirements.txt && \
9+ pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple && \
1010 pip install --no-cache-dir gunicorn[gevent] && \
1111 pip cache purge
1212
1313ADD . .
14- RUN chmod +x /code/djangoblog/bin/docker_start .sh
15- ENTRYPOINT ["/code/djangoblog/bin/docker_start .sh" ]
14+ RUN chmod +x /code/djangoblog/deploy/entrypoint .sh
15+ ENTRYPOINT ["/code/djangoblog/deploy/entrypoint .sh" ]
File renamed without changes.
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ services:
1616 container_name : db
1717
1818 djangoblog :
19- build : .
19+ build :
20+ context : ../../
2021 restart : always
2122 command : bash -c 'sh /code/djangoblog/bin/docker_start.sh'
2223 ports :
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ python manage.py makemigrations && \
1818 python manage.py collectstatic --noinput && \
1919 python manage.py compress --force && \
2020 python manage.py build_index && \
21- python manage.py compilemessages
21+ python manage.py compilemessages || exit 1
2222
2323exec gunicorn ${DJANGO_WSGI_MODULE} :application \
2424--name $NAME \
File renamed without changes.
You can’t perform that action at this time.
0 commit comments