改进 Dockerfile
This commit is contained in:
parent
f85ea5745c
commit
89c7c3cac3
@ -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 && \
|
||||
mkdir -p /tmp/build && apt-get update && \
|
||||
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
|
||||
@ -30,7 +30,6 @@ RUN cd /tmp/build/timescaledb && git checkout . && git checkout 2.14.2 && ./boot
|
||||
|
||||
# CLEAN
|
||||
RUN rm -r /tmp/build && \
|
||||
apt-get remove -y build-essential git postgresql-server-dev-$PG_MAJOR && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get autoremove --purge -y build-essential git postgresql-server-dev-$PG_MAJOR && \
|
||||
apt-mark unhold locales && \
|
||||
rm -rf /var/lib/apt/lists/*
|
Loading…
Reference in New Issue
Block a user