File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ jobs:
33
33
- name : Checkout
34
34
uses : actions/checkout@v4
35
35
with :
36
- ref : main
36
+ ref : ${{ github.ref_name }}
37
37
- name : Prepare
38
38
id : prepare
39
39
run : |
40
40
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
41
41
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
42
- TAG_NAME=python3.11-pg15.8
43
- DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest "
42
+ TAG_NAME=python3.11-pg17.4
43
+ DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
44
44
echo ::set-output name=docker_image::${DOCKER_IMAGE}
45
45
echo ::set-output name=version::${TAG_NAME}
46
46
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} --no-cache \
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments