diff --git a/client/clients.py b/client/clients.py index ac2217e..147c069 100644 --- a/client/clients.py +++ b/client/clients.py @@ -69,7 +69,7 @@ async def sender(target, img): i = 0 async for websocket in websockets.connect(target + "/set", timeout=10): try: - while i < max_h*max_w*1.5: + while i < max_h*max_w*1.8: i+=1 rx = random.randint(0, max_w - 1) ry = random.randint(0, max_h - 1) diff --git a/server/Dockerfile b/server/Dockerfile index d2d675a..70ace93 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,5 +1,5 @@ FROM golang:1.19 - +USER runner WORKDIR /usr/src/app # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change