test source
This commit is contained in:
parent
dbe4df4af2
commit
dce02e74d4
14
Dockerfile
14
Dockerfile
@ -1,19 +1,15 @@
|
|||||||
ARG PG_MAJOR=16
|
ARG PG_MAJOR=16
|
||||||
FROM postgres:$PG_MAJOR
|
FROM postgres:$PG_MAJOR
|
||||||
ARG PG_MAJOR
|
ARG PG_MAJOR
|
||||||
|
|
||||||
# Test connection
|
|
||||||
RUN curl https://www.google.com
|
|
||||||
|
|
||||||
# Base
|
# Base
|
||||||
RUN mkdir -p /tmp/build && apt-get update && \
|
RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
||||||
apt-mark hold locales && \
|
|
||||||
apt-get install -y --no-install-recommends build-essential git postgresql-server-dev-$PG_MAJOR && \
|
|
||||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
|
||||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||||
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 && \
|
||||||
|
apt-mark hold locales && \
|
||||||
|
apt-get install -y --no-install-recommends build-essential git postgresql-server-dev-$PG_MAJOR
|
||||||
|
|
||||||
|
|
||||||
# PG VECTOR
|
# PG VECTOR
|
||||||
|
Loading…
Reference in New Issue
Block a user