2022-09-07 05:51:05 +00:00
|
|
|
FROM ubuntu:22.04
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2022-09-10 11:12:03 +00:00
|
|
|
RUN apt update
|
|
|
|
RUN apt -y upgrade
|
|
|
|
RUN apt install -y supervisor
|
|
|
|
RUN apt install -y python3-pip
|
|
|
|
RUN apt install -y ffmpeg
|
|
|
|
RUN apt install -y imagemagick
|
|
|
|
RUN apt install -y postgresql
|
|
|
|
RUN apt install -y libpq-dev
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
|
|
|
|
COPY requirements.txt /etc/requirements.txt
|
|
|
|
|
|
|
|
RUN pip3 install -r /etc/requirements.txt
|
|
|
|
|
2022-09-10 11:12:03 +00:00
|
|
|
RUN mkdir /images
|
|
|
|
RUN mkdir /songs
|
|
|
|
RUN mkdir /videos
|
|
|
|
RUN mkdir /audio
|
|
|
|
RUN mkdir /asset_submissions
|
|
|
|
RUN mkdir /asset_submissions/marseys
|
|
|
|
RUN mkdir /asset_submissions/hats
|
2022-09-12 07:06:50 +00:00
|
|
|
RUN mkdir /asset_submissions/marseys/original
|
|
|
|
RUN mkdir /asset_submissions/hats/original
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
|
|
|
|
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|