File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 11ARG PYTHON_IMAGE=docker.io/python:3.10.14
2- ARG BUILD_CN=false
3-
42FROM ${PYTHON_IMAGE}
5- # FROM python:3.10.14
63
74# prepare the java env
85WORKDIR /opt
@@ -17,15 +14,16 @@ ENV JAVA_HOME=/opt/jdk
1714
1815WORKDIR /dataflow
1916
17+ # install 3rd-party system dependencies
18+ # RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 libpq-dev -y
19+ ARG BUILD_CN=false
2020RUN if [ "$BUILD_CN" = "true" ]; then \
21+ rm -rf /etc/apt/sources.list.d/debian.sources || true; \
2122 echo "deb http://mirrors.aliyun.com/debian bookworm main contrib non-free" > /etc/apt/sources.list; \
2223 echo "deb http://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free" >> /etc/apt/sources.list; \
2324 echo "deb http://mirrors.aliyun.com/debian bookworm-updates main contrib non-free" >> /etc/apt/sources.list; \
24- fi
25-
26- # install 3rd-party system dependencies
27- # RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 libpq-dev -y
28- RUN apt-get update && \
25+ fi && \
26+ apt-get update && \
2927 apt-get install --no-install-recommends -y \
3028 libpq-dev \
3129 libgl1-mesa-glx \
5856
5957# Start fastapi API Server
6058EXPOSE 8000
61-
You can’t perform that action at this time.
0 commit comments