docs: about docker

This commit is contained in:
shanmite
2021-11-29 20:28:52 +08:00
parent 8b57a85476
commit 7babd5780b
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
**/**
!lib/
!package*
!package.json
!main.js
+2 -5
View File
@@ -1,13 +1,10 @@
# Latest Nodejs + Alpine Linux
FROM node:lts-alpine
MAINTAINER [email protected]
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
+6 -1
View File
@@ -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
```
----------------------------------------
## 防重复转发