forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-03 08:08:45 +02:00
commit 499dcc0ae9
2 changed files with 5 additions and 9 deletions

View File

@ -2,15 +2,11 @@ FROM ubuntu:20.04
COPY supervisord.conf /etc/supervisord.conf COPY supervisord.conf /etc/supervisord.conf
RUN apt update \ RUN apt update \ && apt install -y python3.8 python3-pip supervisor
&& apt install -y python3.8 python3-pip supervisor
RUN mkdir -p /opt/Drama/service RUN mkdir ./service
COPY requirements.txt /opt/Drama/service/requirements.txt RUN pip3 install -r requirements.txt \ && cd ./service
RUN cd /opt/Drama/service \
&& pip3 install -r requirements.txt
EXPOSE 80/tcp EXPOSE 80/tcp

View File

@ -4,7 +4,7 @@ pidfile=/tmp/supervisord.pid
logfile=/tmp/supervisord.log logfile=/tmp/supervisord.log
[program:dramaservice] [program:dramaservice]
directory=/opt/Drama/service directory=/drama/service
command=gunicorn drama.__main__:app -k gevent -w 5 --max-requests 10000 --max-requests-jitter 500 --reload --bind 0.0.0.0:80 command=gunicorn drama.__main__:app -k gevent -w 5 --max-requests 10000 --max-requests-jitter 500 --reload --bind 0.0.0.0:80
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0