Begin updating for dockerisation
This commit is contained in:
		
					parent
					
						
							
								4861bee9d3
							
						
					
				
			
			
				commit
				
					
						c0333212aa
					
				
			
		
					 2 changed files with 18 additions and 1 deletions
				
			
		
							
								
								
									
										17
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
FROM python:3.10.0-alpine3.15
 | 
			
		||||
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
 | 
			
		||||
RUN apk add --update --no-cache \
 | 
			
		||||
    git \
 | 
			
		||||
    build-base \
 | 
			
		||||
    openldap-dev\
 | 
			
		||||
    python3-dev\
 | 
			
		||||
    && rm -rf /var/cache/apk/*
 | 
			
		||||
 | 
			
		||||
# FIX https://github.com/python-ldap/python-ldap/issues/432
 | 
			
		||||
RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
 | 
			
		||||
 | 
			
		||||
COPY requirements.txt ./
 | 
			
		||||
RUN pip install --no-cache-dir -r requirements.txt
 | 
			
		||||
COPY ./ .
 | 
			
		||||
| 
						 | 
				
			
			@ -83,7 +83,7 @@ stripe==2.41.0
 | 
			
		|||
wheel==0.29.0
 | 
			
		||||
django-admin-honeypot==1.0.0
 | 
			
		||||
coverage==4.3.4
 | 
			
		||||
git+https://github.com/ungleich/python-oca.git#egg=python-oca
 | 
			
		||||
git+https://github.com/ungleich/python-oca.git#egg=oca
 | 
			
		||||
djangorestframework==3.6.3
 | 
			
		||||
flake8==3.3.0
 | 
			
		||||
python-memcached==1.58
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue