diff --git a/deploy-web/Dockerfile b/deploy-web/Dockerfile index bc000a7b8..6a69bc985 100644 --- a/deploy-web/Dockerfile +++ b/deploy-web/Dockerfile @@ -1,10 +1,10 @@ -FROM node:18-alpine3.18 AS base +FROM node:18 AS base # Pinned to 3.18 to avoid this issue: https://github.com/nodejs/docker-node/issues/2009 # Install dependencies only when needed FROM base AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. -RUN apk add --no-cache libc6-compat +#RUN apk add --no-cache libc6-compat WORKDIR /app # Install dependencies based on the preferred package manager diff --git a/indexer/src/db/priceHistoryProvider.ts b/indexer/src/db/priceHistoryProvider.ts index 54f89415c..ac71330e6 100644 --- a/indexer/src/db/priceHistoryProvider.ts +++ b/indexer/src/db/priceHistoryProvider.ts @@ -15,7 +15,7 @@ export const syncPriceHistory = async () => { return; } - const endpointUrl = `https://api.coingecko.com/api/v3/coins/${activeChain.coinGeckoId}/market_chart?vs_currency=usd&days=max`; + const endpointUrl = `https://api.coingecko.com/api/v3/coins/${activeChain.coinGeckoId}/market_chart?vs_currency=usd&days=365`; console.log("Fetching latest market data from " + endpointUrl);