forked from rDrama/rDrama
Merge branch 'master' of https://github.com/Aevann1/Drama
commit
499dcc0ae9
10
Dockerfile
10
Dockerfile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue