Delete Dockerfile
Browse files- Dockerfile +0 -35
Dockerfile
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
FROM python:3.10-slim-bullseye
|
| 2 |
-
|
| 3 |
-
LABEL maintainer="foo@bar.com"
|
| 4 |
-
ARG TZ='Asia/Shanghai'
|
| 5 |
-
|
| 6 |
-
ARG CHATGPT_ON_WECHAT_VER
|
| 7 |
-
|
| 8 |
-
RUN echo /etc/apt/sources.list
|
| 9 |
-
# RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
|
| 10 |
-
ENV BUILD_PREFIX=/app
|
| 11 |
-
|
| 12 |
-
ADD . ${BUILD_PREFIX}
|
| 13 |
-
|
| 14 |
-
RUN apt-get update \
|
| 15 |
-
&&apt-get install -y --no-install-recommends bash ffmpeg espeak libavcodec-extra\
|
| 16 |
-
&& cd ${BUILD_PREFIX} \
|
| 17 |
-
&& cp config-template.json config.json \
|
| 18 |
-
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \
|
| 19 |
-
&& pip install --no-cache -r requirements.txt \
|
| 20 |
-
&& pip install --no-cache -r requirements-optional.txt \
|
| 21 |
-
&& pip install azure-cognitiveservices-speech
|
| 22 |
-
|
| 23 |
-
WORKDIR ${BUILD_PREFIX}
|
| 24 |
-
|
| 25 |
-
ADD docker/entrypoint.sh /entrypoint.sh
|
| 26 |
-
|
| 27 |
-
RUN chmod +x /entrypoint.sh \
|
| 28 |
-
&& mkdir -p /home/noroot \
|
| 29 |
-
&& groupadd -r noroot \
|
| 30 |
-
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
|
| 31 |
-
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib
|
| 32 |
-
|
| 33 |
-
USER noroot
|
| 34 |
-
|
| 35 |
-
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|