📦 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
|
website: https://picx.xpoet.cn
|
||||||
github: https://github.com/XPoet/picx
|
github: https://github.com/XPoet/picx
|
||||||
document: https://picx-docs.xpoet.cn
|
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
|
RUN git clone -b gh-pages https://github.com/XPoet/picx
|
||||||
|
|
||||||
# 将entrypoint.sh脚本文件复制到工作目录/app/
|
# 将entrypoint.sh脚本文件复制到工作目录/app/
|
||||||
COPY entrypoint.sh /app/
|
COPY apps/picx/latest/entrypoint.sh /app/
|
||||||
# 赋予entrypoint.sh脚本文件可执行权限
|
# 赋予entrypoint.sh脚本文件可执行权限
|
||||||
RUN chmod +x /app/entrypoint.sh
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
services:
|
services:
|
||||||
picx:
|
picx:
|
||||||
build:
|
image: ghcr.io/pooneyy/picx:latest
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: picx:latest
|
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue