File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Dockerfile by xianhu: build a docker image
2
2
# centos6:
3
- # docker build -t user/centos6 :v6.9.4 .
4
- # docker run -it --name test [-p -v] user/centos6
3
+ # docker build -t user/centos :v6.10.1 .
4
+ # docker run -it --name test [-p -v] user/centos
5
5
# docker attach test
6
6
# centos7:
7
- # docker build -t user/centos7:v6.9.4 .
8
- # docker run -dt --privileged --name test [-p -v] user/centos7
7
+ # docker build -t user/centos:v7.0.1 .
8
+ # docker run -dt --privileged --name test [-p -v] user/centos
9
9
# docker exec -it test /bin/bash
10
10
11
- FROM centos:6.9
11
+ # FROM centos:7
12
+ FROM centos:6.10
12
13
MAINTAINER xianhu <
[email protected] >
13
14
14
15
# change system environments
@@ -53,11 +54,8 @@ RUN yum clean all
53
54
# install libs of python3
54
55
ADD ./requirements.txt /root/
55
56
WORKDIR /root/
56
- RUN pip3.6 install --upgrade pip
57
- RUN pip3.6 install -r requirements.txt
58
-
59
- # clean everything
60
- RUN rm -rf /root/*
57
+ # RUN pip3.6 install --upgrade pip
58
+ # RUN pip3.6 install -r requirements.txt
61
59
62
60
# centos6
63
61
CMD /bin/bash
You can’t perform that action at this time.
0 commit comments