Merge branch 'v2' of github.com:1Panel-dev/MaxKB into v2
This commit is contained in:
commit
aafcd5eb28
@ -33,14 +33,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: ${{ github.ref_name }}
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
id: prepare
|
id: prepare
|
||||||
run: |
|
run: |
|
||||||
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
|
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
|
||||||
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
|
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
|
||||||
TAG_NAME=python3.11-pg15.8
|
TAG_NAME=python3.11-pg17.4
|
||||||
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest"
|
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
|
||||||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||||
echo ::set-output name=version::${TAG_NAME}
|
echo ::set-output name=version::${TAG_NAME}
|
||||||
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} --no-cache \
|
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} --no-cache \
|
||||||
|
|||||||
20
installer/Dockerfile-python-pg
Normal file
20
installer/Dockerfile-python-pg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM python:3.11-slim-bullseye AS python-stage
|
||||||
|
FROM postgres:17.4-bullseye
|
||||||
|
|
||||||
|
ARG DEPENDENCIES=" \
|
||||||
|
libexpat1-dev \
|
||||||
|
libffi-dev \
|
||||||
|
curl \
|
||||||
|
ca-certificates \
|
||||||
|
vim \
|
||||||
|
gettext \
|
||||||
|
postgresql-17-pgvector \
|
||||||
|
postgresql-17-age"
|
||||||
|
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user