This commit is contained in:
		
							parent
							
								
									9e324537c3
								
							
						
					
					
						commit
						fa6550bcf5
					
				
					 4 changed files with 66 additions and 5 deletions
				
			
		
							
								
								
									
										27
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,27 @@
 | 
			
		|||
# Then build the actual amelie docker image
 | 
			
		||||
FROM python:latest
 | 
			
		||||
 | 
			
		||||
# Set /usr/src/app as startup working directory
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
 | 
			
		||||
# Install python requirements
 | 
			
		||||
COPY requirements.txt ./
 | 
			
		||||
RUN pip install --no-cache-dir -r requirements.txt
 | 
			
		||||
 | 
			
		||||
# Make dirs
 | 
			
		||||
RUN mkdir -p /static /config
 | 
			
		||||
 | 
			
		||||
# Copy sources
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
# Check if Django can run
 | 
			
		||||
RUN python3 manage.py check
 | 
			
		||||
 | 
			
		||||
# Expose volumes
 | 
			
		||||
VOLUME ["/static", "/config"]
 | 
			
		||||
 | 
			
		||||
# Expose the web port
 | 
			
		||||
EXPOSE 8000
 | 
			
		||||
 | 
			
		||||
# Start the website
 | 
			
		||||
CMD ["/usr/src/app/start.sh"]
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue