From a99a926d1520c04dd61e906147ddb9b96910525a Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Mon, 10 Jun 2024 23:08:06 +0100 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update dependencies. --- Dockerfile | 4 +--- static/default-banned_users.json | 1 - static/default-ratelimit.json | 16 ---------------- 3 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 static/default-banned_users.json delete mode 100644 static/default-ratelimit.json diff --git a/Dockerfile b/Dockerfile index def9280..af12b50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,6 @@ WORKDIR /go/src/app ARG TARGETARCH ARG TARGETOS # silly workaround for distroless image as no chmod is available -COPY --chmod=777 --chown=65532:65532 static/app /app -ADD static/default-ratelimit.json /app/ratelimit.json -ADD static/default-banned_users.json /app/banned_users.json +COPY --chmod=777 --chown=nonroot:nonroot static/app /go/src/app ADD dist/bot-$TARGETOS-$TARGETARCH /go/src/app/graphql-proxy ENTRYPOINT ["/go/src/app/graphql-proxy"] diff --git a/static/default-banned_users.json b/static/default-banned_users.json deleted file mode 100644 index 0967ef4..0000000 --- a/static/default-banned_users.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/static/default-ratelimit.json b/static/default-ratelimit.json deleted file mode 100644 index dada06d..0000000 --- a/static/default-ratelimit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "ratelimit": { - "admin": { - "req": 100, - "interval": "second" - }, - "guest": { - "req": 3, - "interval": "second" - }, - "-": { - "req": 100, - "interval": "hour" - } - } -} \ No newline at end of file