Skip to content

Commit

Permalink
get rid of supervisord.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0c0n3 committed Sep 7, 2020
1 parent 6b84e35 commit 4c6f1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ RUN cd /src/ngsi-timeseries-api && { pipenv lock -r > /requirements.txt; }
RUN pip install -r /requirements.txt

FROM base
RUN apk --no-cache add curl supervisor
RUN apk --no-cache add curl
COPY --from=builder /usr/local /usr/local
COPY . /src/ngsi-timeseries-api/
COPY conf/supervisord.conf /etc/supervisord.conf
WORKDIR /src/ngsi-timeseries-api/src
ENV PYTHONPATH=$PWD:$PYTHONPATH

EXPOSE 8668

CMD ["supervisord", "-c", "/etc/supervisord.conf"]
CMD ["gunicorn", "-b", "0.0.0.0:8668", "uwsgi", "--log-level", "debug", "--worker-class", "gevent", "--worker-connections", "10000", "--config", "gunicorn.conf.py"]
10 changes: 0 additions & 10 deletions conf/supervisord.conf

This file was deleted.

0 comments on commit 4c6f1b1

Please sign in to comment.