2021-10-15 14:08:27 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
2022-01-10 23:34:56 +00:00
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2022-02-18 13:47:17 +00:00
|
|
|
RUN apt update && apt install -y python3.8 python3-pip supervisor curl
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2022-02-18 13:47:17 +00:00
|
|
|
COPY imei.sh /etc/imei.sh
|
|
|
|
|
|
|
|
RUN /etc/imei.sh
|
2022-02-18 12:27:34 +00:00
|
|
|
|
2022-01-10 23:34:56 +00:00
|
|
|
RUN mkdir -p ./service
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2022-01-10 23:34:56 +00:00
|
|
|
COPY requirements.txt ./service/requirements.txt
|
|
|
|
|
2022-02-18 13:47:17 +00:00
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
RUN mkdir /images && mkdir /songs
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
|
2022-01-10 23:34:56 +00:00
|
|
|
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|