Skip to content

Commit

Permalink
v1.2.4 - simplify Docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GDay committed Jun 10, 2021
1 parent 34a5c4d commit add94e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions back/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN apt-get install -y supervisor
ENV PYTHONUNBUFFERED 1
RUN mkdir -p /app
WORKDIR /app
COPY . .
COPY /back/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./back/ .
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN pip install -r requirements.txt

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
4 changes: 2 additions & 2 deletions back/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loglevel=info ; log level; default info; others: debug,warn,trace
user=root

[program:app]
command=bash -c "cd /app/back/ && python manage.py collectstatic && python manage.py createcachetable && python manage.py migrate && gunicorn back.wsgi -b 0.0.0.0:8000"
command=bash -c "cd /app && python manage.py collectstatic && python manage.py createcachetable && python manage.py migrate && gunicorn back.wsgi -b 0.0.0.0:8000"
user=root

stdout_logfile=/dev/stdout
Expand All @@ -17,7 +17,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:scheduler]
command=bash -c "cd /app/back/ && python manage.py qcluster"
command=bash -c "cd /app && python manage.py qcluster"
user=root

stdout_logfile=/dev/stdout
Expand Down

0 comments on commit add94e1

Please sign in to comment.