mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
19 lines
691 B
Plaintext
19 lines
691 B
Plaintext
FROM python:3.11-slim-bullseye AS python-stage
|
|
FROM postgres:15.8-bullseye
|
|
|
|
ARG DEPENDENCIES=" \
|
|
libexpat1-dev \
|
|
libffi-dev \
|
|
curl \
|
|
ca-certificates \
|
|
vim \
|
|
gettext \
|
|
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 |