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