18 lines
375 B
Docker
18 lines
375 B
Docker
FROM ubuntu:20.04
|
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
RUN apt update \
|
|
&& apt install -y python3.8 python3-pip supervisor
|
|
|
|
RUN mkdir -p /opt/Drama/service
|
|
|
|
COPY requirements.txt /opt/Drama/service/requirements.txt
|
|
|
|
RUN cd /opt/Drama/service \
|
|
&& pip3 install -r requirements.txt
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|