build: 分开镜像

This commit is contained in:
liqiang-fit2cloud 2024-03-15 15:42:27 +08:00
parent 1f6e66edc1
commit c8acf3ed1a
3 changed files with 6 additions and 5 deletions

View File

@ -15,8 +15,8 @@ jobs:
id: prepare
run: |
DOCKER_IMAGE=ghcr.io/maxkb-dev/python-pg
DOCKER_PLATFORMS=linux/amd64,linux/arm64
TAG_NAME=python3.11.8-pg15.6
DOCKER_PLATFORMS=linux/amd64
TAG_NAME=python3.11.8-pg15.3
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

@ -7,7 +7,7 @@ RUN cd ui && \
npm run build && \
rm -rf ./node_modules
FROM ghcr.io/maxkb-dev/python-pg:python3.11.8-pg15.6
FROM ghcr.io/maxkb-dev/python-pg:python3.11.8-pg15.3
# 创建工作目录
RUN mkdir -p /opt/maxkb/app && mkdir -p /opt/maxkb/model && mkdir -p /opt/maxkb/conf
VOLUME /opt/maxkb

View File

@ -1,4 +1,4 @@
FROM postgres:15.6-bookworm
FROM postgres:15.3-bullseye
ENV LANG=C.UTF-8
@ -15,7 +15,8 @@ ENV POSTGRES_USER root
ENV POSTGRES_PASSWORD Password123@postgres
# ---- prepare python env --- #
# ---- below content is copied from https://github.com/docker-library/python/blob/master/3.11/slim-bookworm/Dockerfile --- #
# ---- below content is copied https://github.com/docker-library/python/blob/master/3.11/slim-bullseye/Dockerfile --- #
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
# http://bugs.python.org/issue19846