pip 换源
This commit is contained in:
@@ -13,7 +13,7 @@ RUN apt-get update && \
|
||||
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
COPY . .
|
||||
CMD ["sh", "-c", "sleep 10 && python manage.py runserver 0.0.0.0:8000"]
|
||||
|
||||
@@ -93,7 +93,7 @@ DATABASES = {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'django_vue',
|
||||
'USER': 'root',
|
||||
'PASSWORD': '',
|
||||
'PASSWORD': 'my-secret-pw',
|
||||
'HOST': os.getenv('DATABASE_HOST', 'localhost'),
|
||||
# 'HOST': 'localhost',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user