From 0182178a279272f856ae6d01cbd2273a30dbbac8 Mon Sep 17 00:00:00 2001 From: Askill Date: Sun, 25 Sep 2022 15:06:16 +0000 Subject: [PATCH] docker user --- client/clients.py | 2 +- server/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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