2022-09-07 05:51:05 +00:00
|
|
|
FROM ubuntu:22.04
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-10-04 19:35:02 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2023-02-22 06:40:04 +00:00
|
|
|
RUN apt -y update
|
2022-10-04 19:35:02 +00:00
|
|
|
RUN apt -y upgrade
|
2023-02-22 06:40:04 +00:00
|
|
|
RUN apt -y autoremove
|
2023-07-05 21:52:50 +00:00
|
|
|
RUN apt install -y software-properties-common
|
2023-07-05 21:59:26 +00:00
|
|
|
RUN apt install -y sudo
|
2023-01-01 11:36:20 +00:00
|
|
|
RUN apt install -y supervisor
|
2022-10-04 19:35:02 +00:00
|
|
|
RUN apt install -y python3-pip
|
|
|
|
RUN apt install -y ffmpeg
|
|
|
|
RUN apt install -y postgresql
|
|
|
|
RUN apt install -y libpq-dev
|
2022-10-04 19:48:52 +00:00
|
|
|
RUN apt install -y nano
|
2023-01-21 00:19:07 +00:00
|
|
|
RUN apt install -y mailutils
|
2024-10-14 14:56:33 +00:00
|
|
|
RUN apt install -y exiv2
|
2022-10-04 19:35:02 +00:00
|
|
|
|
2023-01-28 14:41:37 +00:00
|
|
|
COPY requirements.txt /requirements.txt
|
2023-07-26 23:33:00 +00:00
|
|
|
COPY scripts/startup_docker_chat.sh /s
|
2022-10-04 19:35:02 +00:00
|
|
|
|
2023-01-28 14:41:37 +00:00
|
|
|
RUN pip3 install -r /requirements.txt
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-10-04 19:35:02 +00:00
|
|
|
RUN mkdir /images
|
|
|
|
RUN mkdir /songs
|
2023-02-10 14:17:22 +00:00
|
|
|
RUN mkdir /temp_songs
|
2022-10-04 19:35:02 +00:00
|
|
|
RUN mkdir /videos
|
|
|
|
RUN mkdir /audio
|
|
|
|
RUN mkdir /asset_submissions
|
2024-03-04 23:54:15 +00:00
|
|
|
RUN mkdir /asset_submissions/art
|
2023-03-21 14:16:18 +00:00
|
|
|
RUN mkdir /asset_submissions/emojis
|
2022-10-04 19:35:02 +00:00
|
|
|
RUN mkdir /asset_submissions/hats
|
2024-03-04 23:54:15 +00:00
|
|
|
RUN mkdir /asset_submissions/art/original
|
2023-03-21 14:16:18 +00:00
|
|
|
RUN mkdir /asset_submissions/emojis/original
|
2022-10-04 19:35:02 +00:00
|
|
|
RUN mkdir /asset_submissions/hats/original
|
2022-11-30 18:09:31 +00:00
|
|
|
RUN mkdir /var/log/rdrama
|
|
|
|
|
2022-10-04 19:48:52 +00:00
|
|
|
RUN apt install -y nginx
|
|
|
|
RUN rm /etc/nginx/sites-available -r
|
|
|
|
RUN rm /etc/nginx/sites-enabled/default
|
|
|
|
RUN mkdir /etc/nginx/includes
|
|
|
|
|
2023-07-07 00:25:23 +00:00
|
|
|
RUN apt install -y wget
|
2023-08-04 17:52:54 +00:00
|
|
|
RUN apt -y update
|
|
|
|
RUN apt upgrade -y cmake
|
2023-07-06 23:30:46 +00:00
|
|
|
RUN t=$(mktemp) && wget 'https://dist.1-2.dev/imei.sh' -qO "$t" && bash "$t" && rm "$t"
|
|
|
|
|
2022-10-04 19:35:02 +00:00
|
|
|
EXPOSE 80/tcp
|
2022-10-04 01:06:57 +00:00
|
|
|
|
2024-03-04 19:46:32 +00:00
|
|
|
RUN ln -sf /bin/bash /bin/sh
|
|
|
|
|
2023-07-26 18:29:45 +00:00
|
|
|
CMD [ "/usr/bin/supervisord", "-c", "/d/supervisord.conf" ]
|