fix: update Docker images to use latest versions and adjust permissions

This commit is contained in:
CaptainB 2025-08-19 14:05:12 +08:00
parent 0e1ae663b1
commit 87eb5c3789
3 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,7 @@ jobs:
run: |
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
TAG_NAME=python3.11-pg15.8
TAG_NAME=python3.11-pg15.14
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest"
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${TAG_NAME}

View File

@ -70,6 +70,7 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
useradd --no-create-home --home /opt/maxkb/app/sandbox sandbox -g root && \
chown -R sandbox:root /opt/maxkb/app/sandbox && \
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/15/bin/* && \
chmod g+xr /usr/bin/ld.so && \
chmod g+x /usr/local/bin/python* && \
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx

View File

@ -1,5 +1,5 @@
FROM python:3.11-slim-bookworm AS python-stage
FROM postgres:15.14-bookworm
FROM python:3.11-slim-trixie AS python-stage
FROM postgres:15.14-trixie
ARG DEPENDENCIES=" \
libexpat1-dev \