Update description

This commit is contained in:
iwumingz 2022-04-08 14:52:38 +08:00
parent 347e853a8d
commit 8f1c35a010
3 changed files with 19 additions and 3 deletions

View File

@ -4,7 +4,8 @@ LABEL maintainer=iwumingz
WORKDIR /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 \
&& pip install -r requirements.txt --no-cache-dir \
&& apk del build-deps \

View File

@ -1,4 +1,5 @@
# 注意勿随意更改顶级的Key
# 注意如无修改能力勿随意更改顶级的Key
# 建议如无修改能力勿改动容器名即sycgram
# 按需改动
# 指令 - 例子 - 格式二选一
@ -127,3 +128,13 @@ unarchive:
cmd: unarch
format: -unarch
usage: 撤销归档当前对话
restart:
cmd: restart
format: -restart
usage: 重启sycgram
update:
cmd: update
format: -update
usage: 更新sycgram到主分支的最新版本

View File

@ -5,7 +5,7 @@ CONTAINER_NAME="sycgram"
GITHUB_IMAGE_NAME="iwumingz/${CONTAINER_NAME}"
GITHUB_IMAGE_PATH="ghcr.io/${GITHUB_IMAGE_NAME}"
PROJECT_PATH="/opt/${CONTAINER_NAME}"
PROJECT_VERSION="v1.0.4"
PROJECT_VERSION="v1.0.5"
red='\033[0;31m'
green='\033[0;32m'
@ -133,6 +133,10 @@ install_sycgram(){
--restart always \
--hostname ${CONTAINER_NAME} \
-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
}