Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
45 lines (36 loc) · 1.25 KB

File metadata and controls

45 lines (36 loc) · 1.25 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM centos:7.2.1511
# author label
LABEL maintainer="XinStar"
# install related packages
ENV ENVIRONMENT DOCKER_PROD
RUN cd / && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& yum makecache \
&& yum install -y wget aclocal automake autoconf make gcc gcc-c++ python-devel mysql-devel bzip2 libffi-devel epel-release \
&& yum install -y epel-release \
&& yum install -y python-pip \
&& yum clean all
# install python 3.7.0
#RUN wget https://npm.taobao.org/mirrors/python/3.7.0/Python-3.7.0.tar.xz \
# && tar -xvf Python-3.7.0.tar.xz -C /usr/local/ \
# && rm -rf Python-3.7.0.tar.xz \
# && cd /usr/local/Python-3.7.0 \
# && ./configure && make && make install
# 创建src目录
#COPY robot /root/robot
#WORKDIR /root/robot
# install related packages
#RUN pip3 install -i https://pypi.doubanio.com/simple/ -r requirements.txt
ADD requirements.txt /requirements.txt
RUN pip install --upgrade setuptools
RUN pip install -r /requirements.txt
# expose port
EXPOSE 15731
# install ssh
RUN yum -y update; yum clean all
RUN yum -y install openssh-server passwd; yum clean all
ADD ./start.sh /start.sh
RUN mkdir /var/run/sshd
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
RUN chmod 755 /start.sh
RUN /start.sh
ENTRYPOINT ["/usr/sbin/sshd", "-D"]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.