Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
guo xiaoyong
Jumpserver
Commits
203a0124
Commit
203a0124
authored
3 years ago
by
ibuler
Committed by
Jiangjie.Bai
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
perf: 优化dockerfile
parent
37fef615
dev
dependabot/pip/requirements/ansible-4.2.0
feat_acl_muiltistrategy
feat_proxyterminal
master
pr@de@perf_role_bingding_migrations
pr@dev@connect_token_to_db
pr@dev@feat_custom_platform_auth_change
pr@dev@feat_email_task_audit
pr@dev@fix_tcp_syslog
pr@dev@perf_base_model
pr@dev@refactor_tickiets
pr@dev@share_session_link
pr@dev@tdsql_v5.7
pr@dev@tidb
pr@dev@vault_secret
prr@dev@fix_ldapimport
repr@dev_v2.23_v2.22_v2.21@379c7198@fix_esupdatefailed
v2.15
v2.16
v2.17
v2.18
v2.19
v2.20
v2.21
v2.22
v2.23
v2.23.0
v2.22.3
v2.22.2
v2.22.1
v2.22.0
v2.21.4
v2.21.3
v2.21.2
v2.21.1
v2.21.0
v2.20.3
v2.20.2
v2.20.1
v2.20.0
v2.19.2
v2.19.1
v2.19.0
v2.18.3
v2.18.2
v2.18.1
v2.18.0
v2.17.5
v2.17.4
v2.17.3
v2.17.2
v2.17.1
v2.17.0
v2.16.3
v2.16.2
v2.16.1
v2.16.0
v2.15.5
v2.15.4
v2.15.3
v2.15.2
v2.15.1
v2.15.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.dockerignore
+2
-1
.dockerignore
Dockerfile
+5
-0
Dockerfile
with
7 additions
and
1 deletion
+7
-1
.dockerignore
+
2
-
1
View file @
203a0124
...
...
@@ -6,4 +6,5 @@ tmp/*
django.db
celerybeat.pid
### Vagrant ###
.vagrant/
\ No newline at end of file
.vagrant/
apps/xpack/.git
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
5
-
0
View file @
203a0124
# 编译代码
FROM
python:3.8.6-slim
as
stage-build
MAINTAINER
JumpServer Team <ibuler@qq.com>
ARG
VERSION
...
...
@@ -7,9 +8,12 @@ WORKDIR /opt/jumpserver
ADD
. .
RUN
cd
utils
&&
bash
-ixeu
build.sh
# 构建运行时环境
FROM
python:3.8.6-slim
ARG
PIP_MIRROR=https://pypi.douban.com/simple
ENV
PIP_MIRROR=$PIP_MIRROR
ARG
PIP_JMS_MIRROR=https://pypi.douban.com/simple
ENV
PIP_JMS_MIRROR=$PIP_JMS_MIRROR
WORKDIR
/opt/jumpserver
...
...
@@ -27,6 +31,7 @@ RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \
COPY
./requirements/requirements.txt ./requirements/requirements.txt
RUN
pip
install
--upgrade
pip
==
20.2.4
setuptools
==
49.6.0
wheel
==
0.34.2
-i
${
PIP_MIRROR
}
\
&&
pip
install
--no-cache-dir
$(
grep
-E
'jms|jumpserver'
requirements/requirements.txt
)
-i
${
PIP_JMS_MIRROR
}
\
&&
pip
install
--no-cache-dir
-r
requirements/requirements.txt
-i
${
PIP_MIRROR
}
\
&&
rm
-rf
~/.cache/pip
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help