25 lines
		
	
	
	
		
			486 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			486 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# 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 --upgrade pip
 | 
						|
RUN pip install --no-cache-dir -r requirements.txt
 | 
						|
 | 
						|
# Make dirs
 | 
						|
RUN mkdir -p /static /config
 | 
						|
 | 
						|
# Copy sources
 | 
						|
COPY . .
 | 
						|
 | 
						|
# Expose volumes
 | 
						|
VOLUME ["/static", "/config"]
 | 
						|
 | 
						|
# Expose the web port
 | 
						|
EXPOSE 8000
 | 
						|
 | 
						|
# Start the website
 | 
						|
CMD ["/usr/src/app/start.sh"]
 |