-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (27 loc) · 1.16 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
35
36
37
38
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
netcat wget unzip net-tools sudo psmisc procps \
build-essential\
python3 python3-pip python3-setuptools \
ffmpeg libavcodec-dev libavformat-dev libavutil-dev libavdevice-dev libx11-dev libxext-dev libspandsp-dev libasound2-dev libsdl2-dev \
&& apt-get install -y --install-recommends apache2 \
&& apt-get remove --purge -y \
&& apt autoremove -y \
&& apt autoclean -y
RUN mkdir -p /var/UIHelper
COPY src /var/UIHelper/src
COPY scripts /var/UIHelper/scripts
RUN pip3 install gTTS pydub \
&& python3 /var/UIHelper/scripts/generate_tts_files.py -i /var/UIHelper/src/assets/lang/ -o /var/UIHelper/src/assets/lang/files/ \
&& pip3 uninstall -y gTTS pydub
COPY config/uihelper.conf /etc/apache2/sites-available/uihelper.conf
RUN a2ensite uihelper.conf\
&& a2enmod ssl
COPY entrypoint.sh /var/
RUN chmod +x /var/entrypoint.sh
EXPOSE 80 443
# redirect apache logs to docker stdout/stderr
RUN ln -sf /proc/1/fd/1 /var/log/apache2/access.log
RUN ln -sf /proc/1/fd/2 /var/log/apache2/error.log
WORKDIR /var
ENTRYPOINT ["/bin/bash", "/var/entrypoint.sh"]