Skip to content

Commit

Permalink
fix: github actions push wrong dockerhub branch, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
HalcyonAzure committed Oct 27, 2023
1 parent feefbde commit e077c61
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: halcyonazure/lsky-pro-docker:dev
tags: halcyonazure/lsky-pro-docker:latest
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lsky-Pro Docker镜像

每天自动拉取最新代码构建Docker镜像
每天自动拉取最新代码构建Docker镜像,现已上传amd64和arm64两种硬件架构。

## 使用方法

Expand All @@ -9,7 +9,7 @@ docker run -d \
--name lsky-pro \
--restart unless-stopped \
-p 8089:8089 \
-v $PWD/lsky/web:/var/www/html \
-v $PWD/lsky:/var/www/html \
-e WEB_PORT=8089 \
halcyonazure/lsky-pro-docker:latest
```
Expand Down Expand Up @@ -79,6 +79,21 @@ networks:
原项目:[☁️兰空图床(Lsky Pro) - Your photo album on the cloud.](https://github.com/lsky-org/lsky-pro)
## 构建您自己的镜像
现在,您可以通过提供的Dockerfile直接构建自己的Lsky-Pro镜像。Dockerfile已经配置为多段构建,不再需要手动拉取源码。下面的命令展示了如何构建镜像:
```bash
docker build -t lsky-pro-docker .
```

如果您想为不同的硬件架构构建镜像(例如,arm64或amd64),您可以使用以下命令:

```bash
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t lsky-pro-docker .
```

## 手动备份/升级

如果需要迁移数据库/手动升级`Lsky-Pro`,可以参考官方文档:[升级|Lsky Pro](https://docs.lsky.pro/docs/free/v2/quick-start/upgrade.html),来备份主要文件以进行恢复/升级

0 comments on commit e077c61

Please sign in to comment.