Update description
This commit is contained in:
parent
347e853a8d
commit
8f1c35a010
@ -4,7 +4,8 @@ LABEL maintainer=iwumingz
|
|||||||
WORKDIR /sycgram
|
WORKDIR /sycgram
|
||||||
COPY . /sycgram
|
COPY . /sycgram
|
||||||
|
|
||||||
RUN apk add --no-cache libjpeg libwebp libpng py3-lxml bc neofetch \
|
# The libc6-compat dependency is required to use the host's docker commands
|
||||||
|
RUN apk add --no-cache libjpeg libwebp libpng py3-lxml bc neofetch libc6-compat \
|
||||||
&& apk add --no-cache --virtual build-deps gcc g++ zlib-dev jpeg-dev libxml2-dev libxslt-dev libwebp-dev libpng-dev \
|
&& apk add --no-cache --virtual build-deps gcc g++ zlib-dev jpeg-dev libxml2-dev libxslt-dev libwebp-dev libpng-dev \
|
||||||
&& pip install -r requirements.txt --no-cache-dir \
|
&& pip install -r requirements.txt --no-cache-dir \
|
||||||
&& apk del build-deps \
|
&& apk del build-deps \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# 注意,勿随意更改顶级的Key
|
# 注意,如无修改能力,勿随意更改顶级的Key
|
||||||
|
# 建议:如无修改能力,勿改动容器名,即sycgram
|
||||||
# 按需改动
|
# 按需改动
|
||||||
|
|
||||||
# 指令 - 例子 - 格式二选一
|
# 指令 - 例子 - 格式二选一
|
||||||
@ -127,3 +128,13 @@ unarchive:
|
|||||||
cmd: unarch
|
cmd: unarch
|
||||||
format: -unarch
|
format: -unarch
|
||||||
usage: 撤销归档当前对话
|
usage: 撤销归档当前对话
|
||||||
|
|
||||||
|
restart:
|
||||||
|
cmd: restart
|
||||||
|
format: -restart
|
||||||
|
usage: 重启sycgram
|
||||||
|
|
||||||
|
update:
|
||||||
|
cmd: update
|
||||||
|
format: -update
|
||||||
|
usage: 更新sycgram到主分支的最新版本
|
||||||
|
@ -5,7 +5,7 @@ CONTAINER_NAME="sycgram"
|
|||||||
GITHUB_IMAGE_NAME="iwumingz/${CONTAINER_NAME}"
|
GITHUB_IMAGE_NAME="iwumingz/${CONTAINER_NAME}"
|
||||||
GITHUB_IMAGE_PATH="ghcr.io/${GITHUB_IMAGE_NAME}"
|
GITHUB_IMAGE_PATH="ghcr.io/${GITHUB_IMAGE_NAME}"
|
||||||
PROJECT_PATH="/opt/${CONTAINER_NAME}"
|
PROJECT_PATH="/opt/${CONTAINER_NAME}"
|
||||||
PROJECT_VERSION="v1.0.4"
|
PROJECT_VERSION="v1.0.5"
|
||||||
|
|
||||||
red='\033[0;31m'
|
red='\033[0;31m'
|
||||||
green='\033[0;32m'
|
green='\033[0;32m'
|
||||||
@ -133,6 +133,10 @@ install_sycgram(){
|
|||||||
--restart always \
|
--restart always \
|
||||||
--hostname ${CONTAINER_NAME} \
|
--hostname ${CONTAINER_NAME} \
|
||||||
-v ${PROJECT_PATH}/data:/sycgram/data \
|
-v ${PROJECT_PATH}/data:/sycgram/data \
|
||||||
|
# 注意这里是docker的一些默认路径
|
||||||
|
# 如果你有过路径更改,请按需修改即可
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
-v $(which docker):/usr/local/bin/docker \
|
||||||
${GITHUB_IMAGE_PATH}:latest
|
${GITHUB_IMAGE_PATH}:latest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user