Skip to content

Commit

Permalink
新增Docker說明 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonSlovoka committed Sep 27, 2024
1 parent 8997142 commit 1c8e982
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# docker build -t MyDocs:20240927 .
# 啟動container
# docker run -e PORT=9000 -p 9000:9000 --name MyDocs MyDocs:20240927
# 匯出你的image
# docker save -o MyDocs.tar MyDocs:20240927
# 匯入
# docker load -i MyDocs.tar

# slides:v0.2.0.alpha 已經包含slides.exe以及作業系統:alpine

FROM slides:v0.2.0.alpha AS slides

# 你只需要把md文件和相關檔案copy即可
Expand All @@ -22,4 +26,3 @@ CMD slides \
-fs "pages" \
-fs "static" \
-fs "tmpl"

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ slides.exe -md="mySlides"
slides.exe -tls
```

## Docker

建立slides的image
```
docker build -t slides:v0.2.0.alpha .
```

在您的其他專案可以應用其image,

可以參考[Dockerfile.example](Dockerfile.example)

## Plugin 自定義插件

可以參考[此commit](https://github.com/CarsonSlovoka/slides/commit/b239af8f9b9ffcf27bbb8b00e46e9f2fb516cf47)
Expand Down

0 comments on commit 1c8e982

Please sign in to comment.