📦 build(picx): optimize docker deployment
- switch from local build to pre-built ghcr.io images - simplify docker-compose configuration by removing build context - fix entrypoint.sh copy path in latest Dockerfile - add multi-architecture support to data.yml
This commit is contained in:
parent
833dcbd3cf
commit
3c1aab7b47
|
|
@ -17,3 +17,13 @@ additionalProperties:
|
|||
website: https://picx.xpoet.cn
|
||||
github: https://github.com/XPoet/picx
|
||||
document: https://picx-docs.xpoet.cn
|
||||
architecture:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/ppc64le
|
||||
- linux/riscv64
|
||||
- linux/s390x
|
||||
- linux/arm/v7
|
||||
- linux/arm/v6
|
||||
- linux/386
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ RUN apk update && \
|
|||
RUN git clone -b gh-pages https://github.com/XPoet/picx
|
||||
|
||||
# 将entrypoint.sh脚本文件复制到工作目录/app/
|
||||
COPY entrypoint.sh /app/
|
||||
COPY apps/picx/latest/entrypoint.sh /app/
|
||||
# 赋予entrypoint.sh脚本文件可执行权限
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
services:
|
||||
picx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: picx:latest
|
||||
image: ghcr.io/pooneyy/picx:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
|
|
|
|||
Loading…
Reference in New Issue