-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add dockerfile * add dockerfile * 归档内容 * 'Bump version: 0.1.8 → 1.0.1' * [archive] version: v1.0 -> v1.0.1 * 添加终版说明 * 添加终版说明 * Update README.md Co-authored-by: jianxin.lu <jianxin.lu@woqutech.com>
- Loading branch information
Showing
11 changed files
with
89 additions
and
66 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
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,22 @@ | ||
# project | ||
.venv/ | ||
.git/ | ||
.idea/ | ||
.DS_Store | ||
*.lic | ||
logs/ | ||
|
||
|
||
# Python | ||
*.egg-info | ||
*.egg | ||
*.pyc | ||
.cache/ | ||
build/ | ||
dist/ | ||
|
||
# pytest | ||
.pytest_cache/ | ||
|
||
# files | ||
*.log |
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,12 +1,22 @@ | ||
FROM python:3.8.12 AS runner | ||
FROM --platform=linux/amd64 python:3.8.12-slim AS runner | ||
MAINTAINER jeyrce@gmail.com | ||
WORKDIR /ishare | ||
ADD . . | ||
RUN pip install -r requirements.txt \ | ||
COPY . . | ||
RUN /usr/local/bin/python -m pip install --upgrade pip && \ | ||
pip install -r requirements.txt \ | ||
-i https://mirrors.aliyun.com/pypi/simple/ \ | ||
--trusted-host mirrors.aliyun.com \ | ||
--no-cache-dir && python manager.py collectstatic | ||
--no-cache-dir && \ | ||
python /ishare/manage.py collectstatic | ||
|
||
EXPOSE 7777:7777 | ||
CMD ["/usr/local/bin/uwsgi", "--ini", "/ishare/confs/uwsgi/uwsgi-docker.ini"] | ||
EXPOSE 7777 | ||
VOLUME /ishare/db.sqlite3 /ishare/media /ishare/STATIC | ||
CMD ["python3", \ | ||
"manage.py", \ | ||
"runserver", \ | ||
"--noreload", \ | ||
"--insecure", \ | ||
"--no-color", \ | ||
"0.0.0.0:7777" \ | ||
] | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.1.8 | ||
1.0.1 |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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