mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
✨ docker
This commit is contained in:
18
Dockerfile.dashboard
Normal file
18
Dockerfile.dashboard
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
FROM golang:alpine AS binarybuilder
|
||||||
|
RUN apk --no-cache --no-progress add \
|
||||||
|
gcc \
|
||||||
|
musl-dev
|
||||||
|
WORKDIR /dashboard
|
||||||
|
COPY . .
|
||||||
|
RUN cd cmd/dashboard \
|
||||||
|
&& go build -o app -ldflags="-s -w"
|
||||||
|
FROM alpine:latest
|
||||||
|
RUN apk --no-cache --no-progress add \
|
||||||
|
ca-certificates \
|
||||||
|
tzdata
|
||||||
|
WORKDIR /dashboard
|
||||||
|
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
|
||||||
|
|
||||||
|
VOLUME ["/dashboard/data"]
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["/dashboard/app"]
|
||||||
@@ -32,6 +32,12 @@ site:
|
|||||||
cookiename: tulong #Cookie 名
|
cookiename: tulong #Cookie 名
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Docker
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker pull docker.pkg.github.com/p14yground/nezha/dashboard #面板
|
||||||
|
```
|
||||||
|
|
||||||
## 教程文章
|
## 教程文章
|
||||||
|
|
||||||
- [哪吒面板:小鸡们的最佳探针](https://www.zhujizixun.com/2843.html)
|
- [哪吒面板:小鸡们的最佳探针](https://www.zhujizixun.com/2843.html)
|
||||||
Reference in New Issue
Block a user