Skip to content

Commit e8d5a4a

Browse files
build: add Dockerfile-python-pg
1 parent 3502522 commit e8d5a4a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/build-and-push-python-pg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
4141
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
42-
TAG_NAME=python3.11-pg15.8
42+
TAG_NAME=python3.11-pg17.4
4343
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest"
4444
echo ::set-output name=docker_image::${DOCKER_IMAGE}
4545
echo ::set-output name=version::${TAG_NAME}

installer/Dockerfile-python-pg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM python:3.11-slim-bullseye AS python-stage
2+
FROM postgres:17.4-bullseye
3+
4+
ARG DEPENDENCIES=" \
5+
libexpat1-dev \
6+
libffi-dev \
7+
curl \
8+
ca-certificates \
9+
vim \
10+
gettext \
11+
postgresql-17-pgvector \
12+
postgresql-17-age"
13+
14+
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
15+
echo "Asia/Shanghai" > /etc/timezone && \
16+
apt-get update && apt-get install -y --no-install-recommends $DEPENDENCIES && \
17+
apt-get clean all && \
18+
rm -rf /var/lib/apt/lists/*
19+
20+
COPY --from=python-stage /usr/local /usr/local

0 commit comments

Comments
 (0)