updates
This commit is contained in:
		@@ -13,16 +13,16 @@ ENV PYTHONUNBUFFERED 1
 | 
			
		||||
RUN mkdir /cwebcomp
 | 
			
		||||
WORKDIR /cwebcomp
 | 
			
		||||
ADD . /cwebcomp/
 | 
			
		||||
# only add this next one if yoi have static files
 | 
			
		||||
# only add this next one if you have static files
 | 
			
		||||
RUN mkdir static
 | 
			
		||||
 | 
			
		||||
RUN pip install -r requirements/requirements.txt
 | 
			
		||||
RUN python manage.py collectstatic
 | 
			
		||||
 | 
			
		||||
# only if you need celery 
 | 
			
		||||
RUN useradd -ms /bin/bash celery 
 | 
			
		||||
COPY broker/init.d_celeryd /etc/init.d/celeryd
 | 
			
		||||
COPY broker/celeryd /etc/default/celeryd
 | 
			
		||||
#RUN useradd -ms /bin/bash celery 
 | 
			
		||||
#COPY broker/init.d_celeryd /etc/init.d/celeryd
 | 
			
		||||
#COPY broker/celeryd /etc/default/celeryd
 | 
			
		||||
 | 
			
		||||
# nginx config and script to be run
 | 
			
		||||
COPY docker/nginx.conf /etc/nginx/sites-available/default
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
uwsgi --ini app.ini --venv /usr/local
 | 
			
		||||
nginx -g 'daemon off;'
 | 
			
		||||
		Reference in New Issue
	
	Block a user