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
RUN apt update \
&& apt install -y python3.8 python3-pip supervisor
RUN apt update \ && 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 cd /opt/Drama/service \
&& pip3 install -r requirements.txt
RUN pip3 install -r requirements.txt \ && cd ./service
EXPOSE 80/tcp

View File

@ -4,9 +4,9 @@ pidfile=/tmp/supervisord.pid
logfile=/tmp/supervisord.log
[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
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stderr_logfile_maxbytes=0