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
|
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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue