-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gbsfm-web-python3
53 lines (47 loc) · 1.58 KB
/
Dockerfile.gbsfm-web-python3
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pinning to 3.10 for now
from python:3.10
ARG DRONE_DATABASE_HOST
ARG DRONE_DATABASE_PASSWORD
ARG DRONE_DATABASE_USERNAME
ARG DRONE_NEXT_PASSWORD
ARG DRONE_SA_PASSWORD
ARG DRONE_SA_USERNAME
ARG DRONE_SECRET_KEY
ARG DRONE_LISTENERS
ARG DRONE_TELNETHOST
ARG DRONE_META_KEY
ARG DRONE_META_USER
ARG DRONE_PORTAINER_USER
ARG DRONE_PORTAINER_PASS
ARG DRONE_CI
RUN mkdir /srv/pydj && \
mkdir /srv/ftpdir && \
mkdir /srv/logs && \
mkdir /remaining && \
mkdir /home/gbsfm && \
touch /home/gbsfm/listeners.txt && \
apt-get update && \
apt-get -y install nano telnet psmisc jq ffmpeg libopenmpt0 && \
pip install virtualenv && \
git clone https://github.com/ScuttleSE/gbsfm_web.git /srv/pydj && \
cd /srv/pydj && \
git checkout python3 && \
pip install --upgrade pip && \
pip install virtualenv && \
virtualenv ./ && \
. /srv/pydj/bin/activate && \
pip install -r requirements.txt
COPY replacepasswords3.sh /root/replacepasswords.sh
COPY scripts/entrypoint.sh /home/gbsfm/entrypoint.sh
COPY scripts/listeners.sh /home/gbsfm/listeners.sh
COPY scripts/remaining3.py /home/gbsfm/remaining.py
COPY scripts/playjingle.py /home/gbsfm/playjingle.py
COPY scripts/updatelists.py /home/gbsfm/updatelists.py
COPY scripts/restartstuff.sh /home/gbsfm/restartstuff.sh
COPY scripts/restartjobs.sh /home/gbsfm/restartjobs.sh
COPY scripts/skipsong.sh /home/gbsfm/skipsong.sh
COPY scripts/metadataupdater.sh /home/gbsfm/metadataupdater.sh
RUN sh /root/replacepasswords.sh && \
rm /root/replacepasswords.sh
ENTRYPOINT ["/home/gbsfm/entrypoint.sh"]
#CMD tail -f /dev/null