2021-07-21 01:12:26 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
|
2021-08-03 13:01:47 +00:00
|
|
|
RUN apt update && apt install -y python3.8 python3-pip supervisor
|
2021-07-21 01:12:26 +00:00
|
|
|
|
2021-08-03 13:07:58 +00:00
|
|
|
RUN mkdir -p ./service
|
2021-07-21 01:12:26 +00:00
|
|
|
|
2021-08-03 13:07:58 +00:00
|
|
|
COPY requirements.txt ./service/requirements.txt
|
|
|
|
|
|
|
|
RUN cd ./service && pip3 install -r requirements.txt
|
2021-07-21 01:12:26 +00:00
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
|
|
|
|
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|