updates
This commit is contained in:
parent
48443d9855
commit
3a2a2ce268
@ -13,16 +13,16 @@ ENV PYTHONUNBUFFERED 1
|
|||||||
RUN mkdir /cwebcomp
|
RUN mkdir /cwebcomp
|
||||||
WORKDIR /cwebcomp
|
WORKDIR /cwebcomp
|
||||||
ADD . /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 mkdir static
|
||||||
|
|
||||||
RUN pip install -r requirements/requirements.txt
|
RUN pip install -r requirements/requirements.txt
|
||||||
RUN python manage.py collectstatic
|
RUN python manage.py collectstatic
|
||||||
|
|
||||||
# only if you need celery
|
# only if you need celery
|
||||||
RUN useradd -ms /bin/bash celery
|
#RUN useradd -ms /bin/bash celery
|
||||||
COPY broker/init.d_celeryd /etc/init.d/celeryd
|
#COPY broker/init.d_celeryd /etc/init.d/celeryd
|
||||||
COPY broker/celeryd /etc/default/celeryd
|
#COPY broker/celeryd /etc/default/celeryd
|
||||||
|
|
||||||
# nginx config and script to be run
|
# nginx config and script to be run
|
||||||
COPY docker/nginx.conf /etc/nginx/sites-available/default
|
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;'
|
Loading…
Reference in New Issue
Block a user