UnisKB/installer/Dockerfile-python-pg

19 lines
691 B
Plaintext
Raw Normal View History

FROM python:3.11-slim-bullseye AS python-stage
FROM postgres:15.8-bullseye
2024-03-25 04:28:55 +00:00
ARG DEPENDENCIES=" \
libexpat1-dev \
libffi-dev \
2024-03-25 04:28:55 +00:00
curl \
2024-09-18 06:56:41 +00:00
ca-certificates \
2024-03-25 07:07:14 +00:00
vim \
2025-01-21 02:36:07 +00:00
gettext \
2024-03-25 04:28:55 +00:00
postgresql-15-pgvector"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apt-get update && apt-get install -y --no-install-recommends $DEPENDENCIES && \
apt-get clean all && \
rm -rf /var/lib/apt/lists/*
COPY --from=python-stage /usr/local /usr/local