mirror of https://github.com/Askill/r_place.git
docker user
This commit is contained in:
parent
0fc9f946cb
commit
0182178a27
|
|
@ -69,7 +69,7 @@ async def sender(target, img):
|
||||||
i = 0
|
i = 0
|
||||||
async for websocket in websockets.connect(target + "/set", timeout=10):
|
async for websocket in websockets.connect(target + "/set", timeout=10):
|
||||||
try:
|
try:
|
||||||
while i < max_h*max_w*1.5:
|
while i < max_h*max_w*1.8:
|
||||||
i+=1
|
i+=1
|
||||||
rx = random.randint(0, max_w - 1)
|
rx = random.randint(0, max_w - 1)
|
||||||
ry = random.randint(0, max_h - 1)
|
ry = random.randint(0, max_h - 1)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
FROM golang:1.19
|
FROM golang:1.19
|
||||||
|
USER runner
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
|
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue