27 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
ARG             ARCH
 | 
						|
FROM            harbor.colben.cn/general/centos-python$ARCH:7-3.6
 | 
						|
MAINTAINER      Colben colbenlee@gmail.com
 | 
						|
ARG             ARCH
 | 
						|
RUN             echo -e "[mysql80-community]\n\
 | 
						|
name=MySQL 8.0 Community Server\n\
 | 
						|
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el7${ARCH:--x86_64}/\n\
 | 
						|
enabled=1\n\
 | 
						|
gpgcheck=0\n\
 | 
						|
" > /etc/yum.repos.d/mysql.repo \
 | 
						|
                    && yum makecache fast \
 | 
						|
                    && yum install mysql-community-devel -y \
 | 
						|
                    && pip3 install \
 | 
						|
                        -i https://pypi.tuna.tsinghua.edu.cn/simple \
 | 
						|
                        --trusted-host pypi.tuna.tsinghua.edu.cn \
 | 
						|
                        requests==2.18.3 \
 | 
						|
                        redis==3.4.1 \
 | 
						|
                        django==2.2.10 \
 | 
						|
                        djangorestframework==3.11.0 \
 | 
						|
                        mysqlclient==1.4.6 \
 | 
						|
                        sqlparse==0.3.0 \
 | 
						|
                        django-cors-headers==3.2.0 \
 | 
						|
                        uwsgi==2.0.18 \
 | 
						|
                        django-mysql==3.5.0 \
 | 
						|
                    && rm -rf /root/.cache/pip /var/cache/yum
 | 
						|
 |