diff --git a/deployment/docker/Dockerfile b/deployment/docker/Dockerfile index f3d9534..d65f214 100644 --- a/deployment/docker/Dockerfile +++ b/deployment/docker/Dockerfile @@ -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 diff --git a/deployment/docker/start.sh b/deployment/docker/start.sh index e69de29..1048227 100644 --- a/deployment/docker/start.sh +++ b/deployment/docker/start.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +uwsgi --ini app.ini --venv /usr/local +nginx -g 'daemon off;' \ No newline at end of file