Skip to content

Commit 93bb78a

Browse files
committed
update dockerfile
1 parent 08664e6 commit 93bb78a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Docker/Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Dockerfile by xianhu: build a docker image
22
# 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
55
# docker attach test
66
# 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
99
# docker exec -it test /bin/bash
1010

11-
FROM centos:6.9
11+
# FROM centos:7
12+
FROM centos:6.10
1213
MAINTAINER xianhu <[email protected]>
1314

1415
# change system environments
@@ -53,11 +54,8 @@ RUN yum clean all
5354
# install libs of python3
5455
ADD ./requirements.txt /root/
5556
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
6159

6260
# centos6
6361
CMD /bin/bash

0 commit comments

Comments
 (0)