mirror of
https://gh-proxy.ooowl.net/https://github.com/mtrlps-community/lps-community-guide.git
synced 2026-11-22 06:08:55 +08:00
Compare commits
4
Commits
main
..
3e43724daf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e43724daf | ||
|
|
fa4a45d7bd | ||
|
|
0585b86000 | ||
|
|
8546081b13 |
No files matched your search
-20
@@ -1,20 +0,0 @@
|
|||||||
FROM python:3.11-slim AS builder
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends git && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/mtrlps-community/lps-community-guide.git . && \
|
|
||||||
rm -rf .git/hooks .git/logs
|
|
||||||
|
|
||||||
RUN pip install --no-cache-dir \
|
|
||||||
mkdocs-material \
|
|
||||||
mkdocs-git-revision-date-localized-plugin
|
|
||||||
|
|
||||||
RUN mkdocs build
|
|
||||||
|
|
||||||
FROM nginx:alpine
|
|
||||||
COPY --from=builder /app/site /usr/share/nginx/html
|
|
||||||
EXPOSE 80
|
|
||||||
@@ -23,5 +23,6 @@ mkdocs serve
|
|||||||
|
|
||||||
这里也非常感谢参与本项目的[朋友们](https://github.com/mtrlps-community/lps-community-guide/graphs/contributors)和为本项目捐赠的[朋友们](https://www.lpsguide.cn/about/sponsorship/)。
|
这里也非常感谢参与本项目的[朋友们](https://github.com/mtrlps-community/lps-community-guide/graphs/contributors)和为本项目捐赠的[朋友们](https://www.lpsguide.cn/about/sponsorship/)。
|
||||||
|
|
||||||
> Made with ❤️ by [**Let's Play Community Team**](https://github.com/mtrlps-community) | [Website](https://www.lpsguide.cn/) · [Status]([https://afdian.com/a/fenychn0206](https://status.lpsguide.cn/))
|
---
|
||||||
> <br>Code is licensed under [MIT LICENSE](LICENSE) and docs are licensed under [Creative Commons BY-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|
|
||||||
|
<samp><b>lps-community-guide</b> © MTR Let's Play Community Team<br>code is licensed under <a href="LICENSE">MIT License</a>, <br>wikis are licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons BY-SA 4.0</a>.</samp>
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.railpack.com",
|
||||||
|
"packages": { "python": "3.11" },
|
||||||
|
"steps": {
|
||||||
|
"build-site": {
|
||||||
|
"inputs": [{ "step": "packages:mise" }],
|
||||||
|
"commands": [
|
||||||
|
{ "dest": ".", "src": "." },
|
||||||
|
"pip install mkdocs-material mkdocs-git-revision-date-localized-plugin",
|
||||||
|
"python -m mkdocs build"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"startCommand": "nginx -g \"daemon off;\"",
|
||||||
|
"inputs": [
|
||||||
|
{ "step": "build-site", "include": ["site"] }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user