fix: try to adjust timeouts/retries

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2023-10-31 12:51:53 -04:00
parent 078db09c1b
commit 0f2c9e7d7c
4 changed files with 11 additions and 5 deletions

View File

@ -51,7 +51,10 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app
COPY package-lock.json /usr/src/app
RUN npm install --omit=dev --noproxy registry.npmjs.org --maxsockets 1; \
RUN npm config set fetch-retries 5; \
npm config set fetch-retry-mintimeout 100000; \
npm config set fetch-retry-maxtimeout 600000; \
npm ci --omit=dev; \
chown -R root:root /usr/src/app;
FROM ubuntu:focal AS final

View File

@ -38,7 +38,10 @@ WORKDIR /data
COPY / /usr/src/app
RUN cd /usr/src/app; \
npm install --omit=dev --noproxy registry.npmjs.org --maxsockets 1; \
npm config set fetch-retries 5; \
npm config set fetch-retry-mintimeout 100000; \
npm config set fetch-retry-maxtimeout 600000; \
npm install --omit=dev; \
chown -R root:root /usr/src/app; \
chmod +x /usr/src/app/docker-entrypoint.sh;

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "tileserver-gl",
"version": "4.6.4",
"version": "4.6.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "tileserver-gl",
"version": "4.6.4",
"version": "4.6.5",
"license": "BSD-2-Clause",
"dependencies": {
"@mapbox/glyph-pbf-composite": "0.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "tileserver-gl",
"version": "4.6.4",
"version": "4.6.5",
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
"main": "src/main.js",
"bin": "src/main.js",