Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
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
ops
jumpserver
Commits
7d541ee9
Commit
7d541ee9
authored
Jun 06, 2017
by
谢义学
Committed by
老广
Jun 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerfile 优化 (#453)
parent
9b142443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Dockerfile-py3
Dockerfile-py3
+3
-3
No files found.
Dockerfile-py3
View file @
7d541ee9
...
@@ -3,14 +3,14 @@ LABEL MAINTAINER Jumpserver Team <ibuler@qq.com>
...
@@ -3,14 +3,14 @@ LABEL MAINTAINER Jumpserver Team <ibuler@qq.com>
WORKDIR /tmp
WORKDIR /tmp
RUN yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel
RUN yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel
; yum clean all
# Install Python
# Install Python
RUN wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz && \
RUN wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz && \
tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1 && ./configure && make && make install
tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1 && ./configure && make && make install && \
rm -rf /tmp/{Python-3.6.1.tar.xz,Python-3.6.1}
RUN mv /usr/bin/python /usr/bin/python2
RUN mv /usr/bin/python /usr/bin/python2
RUN ln -s /usr/local/bin/python3 /usr/bin/python && ln -s /usr/local/bin/pip3 /usr/bin/pip
RUN ln -s /usr/local/bin/python3 /usr/bin/python && ln -s /usr/local/bin/pip3 /usr/bin/pip
RUN sed -i 's@/usr/bin/python@/usr/bin/python2@g' /usr/bin/yum
RUN sed -i 's@/usr/bin/python@/usr/bin/python2@g' /usr/bin/yum
RUN rm -rf /tmp/{Python-3.6.1.tar.xz,Python-3.6.1}
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