diff --git a/Dockerfile b/Dockerfile index d930afc..851b78c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,16 @@ FROM node:21-alpine as build RUN apk add gcompat # Install PNPM -RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm +RUN wget -qO /bin/pnpm.tar.gz "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linux-x64-musl.tar.gz" \ + && cd /bin \ + && tar -xf /bin/pnpm.tar.gz \ + && chmod +x /bin/pnpm \ + && rm /bin/pnpm.tar.gz WORKDIR /usr/src/app/ # By doing this separate we allow Docker to cache this -COPY package.json pnpm-lock.yaml /usr/src/app/ +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml /usr/src/app/ RUN pnpm install USER node diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..ed7911b --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,8 @@ +allowBuilds: + es5-ext: true + esbuild: true + sodium-native: true +onlyBuiltDependencies: + - es5-ext + - esbuild + - sodium-native diff --git a/src/route/wcl/fights.ts b/src/route/wcl/fights.ts index 13e8a67..cec858f 100644 --- a/src/route/wcl/fights.ts +++ b/src/route/wcl/fights.ts @@ -103,6 +103,10 @@ const fightQuery = gql` id startTime } + + countReached + countRequired + npcCountMap } phases {