-
Notifications
You must be signed in to change notification settings - Fork 965
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from Ehco1996/dev
dev2master
- Loading branch information
Showing
69 changed files
with
3,378 additions
and
2,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[flake8] | ||
ignore = E226,E302,E41 | ||
max-line-length = 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
|
||
FROM python:3.6-slim | ||
FROM python:3.6-alpine | ||
|
||
LABEL Name=django-sspanel Version=0.0.2 | ||
LABEL Name=django-sspanel Version=0.0.3 | ||
|
||
COPY . /src/django-sspanel | ||
COPY requirements.txt /tmp/requirements.txt | ||
|
||
WORKDIR /src/django-sspanel | ||
RUN apk update && apk add --no-cache gcc linux-headers \ | ||
musl-dev python3-dev mariadb-dev jpeg-dev && \ | ||
pip install --no-cache-dir -r /tmp/requirements.txt && \ | ||
apk del gcc linux-headers \ | ||
musl-dev python-dev jpeg-dev && \ | ||
rm -Rf ~/.cache | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
python3-dev \ | ||
default-libmysqlclient-dev && \ | ||
pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 8080 | ||
|
||
# 如果是第一次运行需要手动exec进去执行如下命令 | ||
# python3 manage.py collectstatic --no-input && \ | ||
# python3 manage.py makemigrations && \ | ||
# python3 manage.py migrate --run-syncdb && \ | ||
|
||
# server | ||
CMD uwsgi uwsgi.ini | ||
# # 如果是第一次运行需要手动exec进去执行如下命令 | ||
# # python3 manage.py collectstatic --no-input && \ | ||
# # python3 manage.py makemigrations && \ | ||
# # python3 manage.py migrate --run-syncdb && \ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
class ApiConfig(AppConfig): | ||
name = 'api' | ||
name = "api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.