This commit is contained in:
Shaquille Soekhlal 2021-02-15 11:35:11 +01:00
parent 48443d9855
commit 3a2a2ce268
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
#!/bin/bash
uwsgi --ini app.ini --venv /usr/local
nginx -g 'daemon off;'