改进 Dockerfile

This commit is contained in:
ivamp 2024-05-06 21:03:06 +08:00
parent f85ea5745c
commit 89c7c3cac3

View File

@ -11,7 +11,7 @@ RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib
rm -rf /etc/apt/sources.list.d/debian.sources && \ rm -rf /etc/apt/sources.list.d/debian.sources && \
mkdir -p /tmp/build && apt-get update && \ mkdir -p /tmp/build && apt-get update && \
apt-mark hold locales && \ apt-mark hold locales && \
apt-get install -y --no-install-recommends build-essential git cmake postgresql-server-dev-$PG_MAJOR apt-get install -y --no-install-recommends curl build-essential git cmake postgresql-server-dev-$PG_MAJOR
# PG VECTOR # PG VECTOR
@ -30,7 +30,6 @@ RUN cd /tmp/build/timescaledb && git checkout . && git checkout 2.14.2 && ./boot
# CLEAN # CLEAN
RUN rm -r /tmp/build && \ RUN rm -r /tmp/build && \
apt-get remove -y build-essential git postgresql-server-dev-$PG_MAJOR && \ apt-get autoremove --purge -y build-essential git postgresql-server-dev-$PG_MAJOR && \
apt-get autoremove -y && \
apt-mark unhold locales && \ apt-mark unhold locales && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*