-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
executable file
·34 lines (24 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM nginx:1.17
RUN apt update && \
apt install -y git sqlite3 python2.7 python-virtualenv python3.5 python-pip python3-pip python3-virtualenv ffmpeg bash telnet supervisor gettext-base && \
mkdir -p /srv/taiko-web
RUN git clone https://github.com/bui/taiko-web.git /srv/taiko-web && \
cd /srv/taiko-web
RUN mkdir -p /srv/taiko-web && virtualenv -p /usr/bin/python2 .venv2 && \
pip install pymongo && \
virtualenv -p /usr/bin/python3 .venv3 && \
pip3 install -r /srv/taiko-web/requirements.txt
RUN cd /srv/taiko-web && mkdir -p public/songs
ENV PATH "/usr/bin:/usr/sbin:/bin:/usr/local/bin"
ADD launch.sh /opt
ADD config.py /srv/taiko-web/config.py
ADD nginx-template /nginx-template
RUN mkdir -p /etc/nginx/sites-enabled
ADD etc/supervisor/conf.d/taiko-web.conf /etc/supervisor/conf.d/taiko-web.conf
ADD db/taiko.db /srv/taiko-web/taiko.db
ADD songs /srv/taiko-web/public/songs
ADD etc/config.json /srv/taiko-web/config.json
RUN chmod +x /opt/launch.sh && chmod +x /srv/taiko-web/tools/taikodb_hash.py
EXPOSE 8080
RUN rm -rf /var/lib/apt/lists/*
CMD [ "/opt/launch.sh" ]