Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
graces
Commits
12fd0f29
Commit
12fd0f29
authored
Dec 11, 2019
by
胡凯旋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into test
parents
47cc3c2f
cfa483cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Dockerfile
Dockerfile
+3
-4
No files found.
Dockerfile
View file @
12fd0f29
...
...
@@ -44,15 +44,14 @@ RUN apk add --no-cache --virtual .build-deps \
&& sed -i '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h \
&& pip install --no-cache-dir -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r /tmp/common.txt \
&& mkdir -p /tmp/video_convert \
&& mkdir -p /data/log/g
aia
/app
&& mkdir -p /data/log/g
races
/app
COPY
. /srv/apps/g
aia
/
COPY
. /srv/apps/g
races
/
WORKDIR
/srv/apps/g
aia
/
WORKDIR
/srv/apps/g
races
/
# requirements文件中指定安装master分支的依赖每次构建镜像都会重新安装
RUN
cat
requirements/common.txt |
grep
master
>
/tmp/gm-requirements.txt
\
&&
pip
install
--no-deps
--upgrade
-i
http://mirrors.aliyun.com/pypi/simple/
--trusted-host
mirrors.aliyun.com
-r
/tmp/gm-requirements.txt
\
&&
apk del .build-deps
CMD
gunicorn gaia.wsgi:application -w 6 -k gevent -b 0.0.0.0:8000 --worker-tmp-dir /dev/shm
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment