Skip to content

Commit b2a98a6

Browse files
committed
修改目录结构
1 parent 784278f commit b2a98a6

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ RUN apt-get update && \
66
rm -rf /var/lib/apt/lists/*
77
ADD requirements.txt requirements.txt
88
RUN 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

1313
ADD . .
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"]

docker-compose.es.yml renamed to deploy/docker-compose/docker-compose.es.yml

File renamed without changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2323
exec gunicorn ${DJANGO_WSGI_MODULE}:application \
2424
--name $NAME \
File renamed without changes.

requirements.txt

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)