mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
docs: about docker
This commit is contained in:
parent
8b57a85476
commit
7babd5780b
@ -1,4 +1,4 @@
|
||||
**/**
|
||||
!lib/
|
||||
!package*
|
||||
!package.json
|
||||
!main.js
|
||||
@ -1,13 +1,10 @@
|
||||
# Latest Nodejs + Alpine Linux
|
||||
FROM node:lts-alpine
|
||||
|
||||
MAINTAINER shanmiteko@github.com
|
||||
|
||||
LABEL version="1.0" description="自动参与B站动态抽奖"
|
||||
LABEL author="shanmite" version="1.1" description="自动参与B站动态抽奖"
|
||||
|
||||
WORKDIR /lottery
|
||||
|
||||
COPY ["package.json", "package*.json", "./"]
|
||||
COPY ["package.json", "./"]
|
||||
|
||||
RUN npm install
|
||||
|
||||
|
||||
@ -201,7 +201,7 @@ npm i && npm run clear
|
||||
1.初始化
|
||||
|
||||
```bash
|
||||
curl -fsSL https://cdn.staticaly.com/gh/shanmiteko/LotteryAutoScript/main/script/docker/init.sh | sh
|
||||
curl -fsSL https://cdn.staticaly.com/gh/shanmiteko/LotteryAutoScript/main/script/docker/init.sh | sudo sh
|
||||
```
|
||||
|
||||
进入`lottery`文件夹
|
||||
@ -239,6 +239,11 @@ docker image rm -f shanmite/lottery_auto_docker
|
||||
rm -rf lottery/
|
||||
```
|
||||
|
||||
4.调试
|
||||
```bash
|
||||
docker run -it --entrypoint /bin/sh shanmite/lottery_auto_docker:latest -c sh
|
||||
```
|
||||
|
||||
----------------------------------------
|
||||
|
||||
## 防重复转发
|
||||
|
||||
Loading…
Reference in New Issue
Block a user