You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			433 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			433 B
		
	
	
	
		
			Docker
		
	
FROM python:3.7
 | 
						|
LABEL maintainer="drew@androiddrew.comw"
 | 
						|
 | 
						|
ENV PYTHONUNBUFFERED 1
 | 
						|
ENV DJANGO_ENV production
 | 
						|
 | 
						|
COPY ./requirements.txt /code/requirements.txt
 | 
						|
RUN pip install -r /code/requirements.txt
 | 
						|
RUN pip install gunicorn
 | 
						|
 | 
						|
COPY . /code/
 | 
						|
WORKDIR /code/
 | 
						|
 | 
						|
RUN python manage.py collectstatic
 | 
						|
 | 
						|
RUN useradd wagtail
 | 
						|
RUN chown -R wagtail /code
 | 
						|
USER wagtail
 | 
						|
 | 
						|
EXPOSE 8000
 | 
						|
CMD exec gunicorn cms.wsgi:application --bind 0.0.0.0:8000 --workers 3
 |